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;
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to