Date: Tue, 7 Aug 2007 23:57:30 GMT From: "Constantine A. Murenin" <cnst@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124856 for review Message-ID: <200708072357.l77NvUFe050395@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124856 Change 124856 by cnst@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708072357.l77NvUFe050395>