Author: araujo
Date: Thu Apr 14 12:53:38 2016
New Revision: 297965
URL: https://svnweb.freebsd.org/changeset/base/297965

Log:
  Use NULL instead of 0 for pointers.
  
  fopen(3) will return NULL in case it can't open the STREAM.

Modified:
  head/usr.sbin/lmcconfig/lmcconfig.c

Modified: head/usr.sbin/lmcconfig/lmcconfig.c
==============================================================================
--- head/usr.sbin/lmcconfig/lmcconfig.c Thu Apr 14 12:51:06 2016        
(r297964)
+++ head/usr.sbin/lmcconfig/lmcconfig.c Thu Apr 14 12:53:38 2016        
(r297965)
@@ -2008,7 +2008,7 @@ load_xilinx(char *name)
   int c;
 
   if (verbose) printf("Load firmware from file %s...\n", name);
-  if ((f = fopen(name, "r")) == 0)
+  if ((f = fopen(name, "r")) == NULL)
     {
     perror("Failed to open file");
     exit(1);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to