Date: Wed, 20 Apr 2016 01:28:31 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298325 - head/usr.bin/tftp Message-ID: <201604200128.u3K1SVb0028202@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Wed Apr 20 01:28:31 2016 New Revision: 298325 URL: https://svnweb.freebsd.org/changeset/base/298325 Log: Use NULL instead of 0 for pointers. Small cosmetic change. MFC after: 2 weeks. Modified: head/usr.bin/tftp/main.c Modified: head/usr.bin/tftp/main.c ============================================================================== --- head/usr.bin/tftp/main.c Wed Apr 20 01:26:03 2016 (r298324) +++ head/usr.bin/tftp/main.c Wed Apr 20 01:28:31 2016 (r298325) @@ -749,11 +749,11 @@ command(void) if (margc == 0) continue; c = getcmd(margv[0]); - if (c == (struct cmd *)-1) { + if (c == (struct cmd *) - 1) { printf("?Ambiguous command\n"); continue; } - if (c == 0) { + if (c == NULL) { printf("?Invalid command\n"); continue; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604200128.u3K1SVb0028202>