diff options
author | avsm <avsm@openbsd.org> | 2004-06-21 15:27:18 +0000 |
---|---|---|
committer | avsm <avsm@openbsd.org> | 2004-06-21 15:27:18 +0000 |
commit | cd1e95667f23fb23e7f3975ce5366d9fccc69945 (patch) | |
tree | 194acc75f8ee019df625a947385b3976ac1ecdb3 /usr.sbin/tokenadm/tokenadm.c | |
parent | Implement pkg_add -I for real; ok espie@ (diff) | |
download | wireguard-openbsd-cd1e95667f23fb23e7f3975ce5366d9fccc69945.tar.xz wireguard-openbsd-cd1e95667f23fb23e7f3975ce5366d9fccc69945.zip |
dont compare int with NULL, compare to 0 instead, otto@ ok
Diffstat (limited to 'usr.sbin/tokenadm/tokenadm.c')
-rw-r--r-- | usr.sbin/tokenadm/tokenadm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tokenadm/tokenadm.c b/usr.sbin/tokenadm/tokenadm.c index 0ca1851f021..f0e65d154d8 100644 --- a/usr.sbin/tokenadm/tokenadm.c +++ b/usr.sbin/tokenadm/tokenadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tokenadm.c,v 1.7 2004/04/07 14:09:35 aaron Exp $ */ +/* $OpenBSD: tokenadm.c,v 1.8 2004/06/21 15:27:19 avsm Exp $ */ /*- * Copyright (c) 1995 Migration Associates Corp. All Rights Reserved @@ -153,11 +153,11 @@ main(int argc, char **argv) if (what == REMOVE || how) goto usage; if (*optarg == '-') { - if ((c = token_mode(optarg+1)) == NULL) + if ((c = token_mode(optarg+1)) == 0) errx(1, "%s: unknown mode", optarg+1); dmode |= c; } else { - if ((c = token_mode(optarg)) == NULL) + if ((c = token_mode(optarg)) == 0) errx(1, "%s: unknown mode", optarg); emode |= c; } |