Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/sys/sys use symbolic constant for 0



details:   https://anonhg.NetBSD.org/src/rev/d83f4948f5dd
branches:  trunk
changeset: 827917:d83f4948f5dd
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 18 13:51:56 2017 +0000

description:
use symbolic constant for 0

diffstat:

 external/cddl/osnet/sys/sys/kmem.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a350f753f0ee -r d83f4948f5dd external/cddl/osnet/sys/sys/kmem.h
--- a/external/cddl/osnet/sys/sys/kmem.h        Sat Nov 18 08:19:21 2017 +0000
+++ b/external/cddl/osnet/sys/sys/kmem.h        Sat Nov 18 13:51:56 2017 +0000
@@ -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 @@
         * 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);
 }



Home | Main Index | Thread Index | Old Index