diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-16 15:41:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-16 15:41:12 +0000 |
commit | d8ebeb5c1882685478f7aff85d3cfd52cb45385b (patch) | |
tree | 6a871a498e943d359bc98a18b415e916ac0ef2b6 /usr.bin/tftp | |
parent | 043c400f909ee0b4431a6657c5b1550df8ab4c83 (diff) |
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r-- | usr.bin/tftp/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index e653b8aefcf..28560039fe7 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.39 2015/11/11 01:12:10 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.40 2016/03/16 15:41:11 krw Exp $ */ /* $NetBSD: main.c,v 1.6 1995/05/21 16:54:10 mycroft Exp $ */ /* @@ -716,7 +716,7 @@ help(int argc, char *argv[]) c = getcmd(arg); if (c == (struct cmd *) - 1) printf("?Ambiguous help command %s\n", arg); - else if (c == (struct cmd *)0) + else if (c == NULL) printf("?Invalid help command %s\n", arg); else printf("%s\n", c->help); |