svn commit: r297965 - head/usr.sbin/lmcconfig
Marcelo Araujo
araujo at FreeBSD.org
Thu Apr 14 12:53:39 UTC 2016
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);
More information about the svn-src-head
mailing list