PERFORCE change 124856 for review
    Constantine A. Murenin 
    cnst at FreeBSD.org
       
    Tue Aug  7 16:57:31 PDT 2007
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=124856
Change 124856 by cnst at dale on 2007/08/07 23:57:13
	more KNF; I believe now there are no more
	0's representing NULL in sysctl(8). :)
Affected files ...
.. //depot/projects/soc2007/cnst-sensors/sbin.sysctl/sysctl.c#5 edit
Differences ...
==== //depot/projects/soc2007/cnst-sensors/sbin.sysctl/sysctl.c#5 (text+ko) ====
@@ -160,7 +160,7 @@
 parse(char *string)
 {
 	int len, i, j;
-	void *newval = 0;
+	void *newval = NULL;
 	int intval;
 	unsigned int uintval;
 	long longval;
@@ -582,7 +582,7 @@
 	}
 	/* find an estimate of how much we need for this var */
 	j = 0;
-	i = sysctl(oid, nlen, 0, &j, NULL, 0);
+	i = sysctl(oid, nlen, NULL, &j, NULL, 0);
 	j += j; /* we want to be sure :-) */
 
 	val = oval = malloc(j + 1);
    
    
More information about the p4-projects
mailing list