From d8ebeb5c1882685478f7aff85d3cfd52cb45385b Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 16 Mar 2016 15:41:12 +0000 Subject: More "( *)0" -> NULL, avoiding any stdarg functions. Feedback millert@ kettenis@ --- usr.bin/tftp/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tftp') 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); -- cgit v1.2.3