Module Name:    src
Committed By:   christos
Date:           Sat Nov 18 13:51:56 UTC 2017

Modified Files:
        src/external/cddl/osnet/sys/sys: kmem.h

Log Message:
use symbolic constant for 0


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/cddl/osnet/sys/sys/kmem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/sys/sys/kmem.h
diff -u src/external/cddl/osnet/sys/sys/kmem.h:1.7 src/external/cddl/osnet/sys/sys/kmem.h:1.8
--- src/external/cddl/osnet/sys/sys/kmem.h:1.7	Fri Nov 17 13:18:01 2017
+++ src/external/cddl/osnet/sys/sys/kmem.h	Sat Nov 18 08:51:56 2017
@@ -1,5 +1,5 @@
 
-/*	$NetBSD: kmem.h,v 1.7 2017/11/17 18:18:01 christos Exp $	*/
+/*	$NetBSD: kmem.h,v 1.8 2017/11/18 13:51:56 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@ kmem_cache_alloc(kmem_cache_t *cache, in
 	 * causes a deadlock we either need to provide an emergency
 	 * pool or handle the failure.
 	 */
-	if (flags == 0)
+	if (flags == KM_PUSHPAGE)
 		flags |= KM_SLEEP;
 	return pool_cache_get(cache, flags);
 }

Reply via email to