svn commit: r298325 - head/usr.bin/tftp

Marcelo Araujo araujo at FreeBSD.org
Wed Apr 20 01:28:32 UTC 2016


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;
 		}


More information about the svn-src-head mailing list