summaryrefslogtreecommitdiffstats
path: root/usr.bin/tftp/main.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-03-16 15:41:10 +0000
committerkrw <krw@openbsd.org>2016-03-16 15:41:10 +0000
commitc9899b11e3d79a7bf5a70dcb12f582cc0994240e (patch)
tree232b670fadcc76fe1d791a3d835b5a816acdb43b /usr.bin/tftp/main.c
parentstyle(9) includes (diff)
downloadwireguard-openbsd-c9899b11e3d79a7bf5a70dcb12f582cc0994240e.tar.xz
wireguard-openbsd-c9899b11e3d79a7bf5a70dcb12f582cc0994240e.zip
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
Diffstat (limited to 'usr.bin/tftp/main.c')
-rw-r--r--usr.bin/tftp/main.c4
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);