summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tokenadm
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2004-06-21 15:27:18 +0000
committeravsm <avsm@openbsd.org>2004-06-21 15:27:18 +0000
commitcd1e95667f23fb23e7f3975ce5366d9fccc69945 (patch)
tree194acc75f8ee019df625a947385b3976ac1ecdb3 /usr.sbin/tokenadm
parentImplement pkg_add -I for real; ok espie@ (diff)
downloadwireguard-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')
-rw-r--r--usr.sbin/tokenadm/tokenadm.c6
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;
}