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 /sbin | |
parent | af50bab383360bb677dec3fd31407782f63ee776 (diff) |
dont compare int with NULL, compare to 0 instead, otto@ ok
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/raidctl/raidctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c index edc89c5faff..8027bee89c8 100644 --- a/sbin/raidctl/raidctl.c +++ b/sbin/raidctl/raidctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raidctl.c,v 1.21 2003/07/06 22:55:32 avsm Exp $ */ +/* $OpenBSD: raidctl.c,v 1.22 2004/06/21 15:27:18 avsm Exp $ */ /* $NetBSD: raidctl.c,v 1.27 2001/07/10 01:30:52 lukem Exp $ */ /*- @@ -250,7 +250,7 @@ main(argc, argv) argc -= optind; argv += optind; - if ((num_options > 1) || (argc == NULL)) + if ((num_options > 1) || (argc == 0)) usage(); if (strlcpy(name, argv[0], sizeof name) >= sizeof(name)) |