diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
commit | e2ddf551fe54f5fd63dbb0131d6835d07f172753 (patch) | |
tree | ee263115c37260360e628dc4fc5e029d18e30311 /usr.sbin/config | |
parent | ecdee9dbaa69f9aa6f959777e5e515c31bb6a0f8 (diff) |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.sbin/config')
-rw-r--r-- | usr.sbin/config/ukcutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c index 7d0d5299f0d..50b356f477d 100644 --- a/usr.sbin/config/ukcutil.c +++ b/usr.sbin/config/ukcutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukcutil.c,v 1.18 2009/10/27 23:59:51 deraadt Exp $ */ +/* $OpenBSD: ukcutil.c,v 1.19 2011/04/06 11:36:26 miod Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -1358,7 +1358,7 @@ process_history(int len, char *buf) c = buf; - while (*c != NULL) { + while (*c != '\0') { switch (*c) { case 'a': c++; @@ -1432,12 +1432,12 @@ process_history(int len, char *buf) ukc_mod_kernel = 1; break; case 'q': - while (*c != NULL) + while (*c != '\0') c++; break; default: printf("unknown command %c\n", *c); - while (*c != NULL && *c != '\n') + while (*c != '\0' && *c != '\n') c++; break; } |