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