diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-06-21 15:27:20 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-06-21 15:27:20 +0000 |
commit | ecab7d48a75714f05e55637088e5074b29a3e974 (patch) | |
tree | 82f2c3eafbb8f7e2ad62ea42b3db3e55825aa0e5 /usr.sbin | |
parent | af50bab383360bb677dec3fd31407782f63ee776 (diff) |
dont compare int with NULL, compare to 0 instead, otto@ ok
Diffstat (limited to 'usr.sbin')
-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; } |