svn commit: r297959 - head/usr.sbin/kgmon
Marcelo Araujo
araujo at FreeBSD.org
Thu Apr 14 11:41:32 UTC 2016
Author: araujo
Date: Thu Apr 14 11:41:30 2016
New Revision: 297959
URL: https://svnweb.freebsd.org/changeset/base/297959
Log:
Use NULL instead of 0 for pointers.
fopen(3) returns a FILE pointer, otherwise NULL is returned.
MFC after: 2 weeks
Modified:
head/usr.sbin/kgmon/kgmon.c
Modified: head/usr.sbin/kgmon/kgmon.c
==============================================================================
--- head/usr.sbin/kgmon/kgmon.c Thu Apr 14 10:43:28 2016 (r297958)
+++ head/usr.sbin/kgmon/kgmon.c Thu Apr 14 11:41:30 2016 (r297959)
@@ -355,7 +355,7 @@ dumpstate(struct kvmvars *kvp)
setprof(kvp, GMON_PROF_OFF);
fp = fopen("gmon.out", "w");
- if (fp == 0) {
+ if (fp == NULL) {
warn("gmon.out");
return;
}
More information about the svn-src-head
mailing list