From owner-p4-projects@FreeBSD.ORG Tue Aug 7 23:57:30 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BADFB16A469; Tue, 7 Aug 2007 23:57:30 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9466E16A41A for ; Tue, 7 Aug 2007 23:57:30 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 852B113C461 for ; Tue, 7 Aug 2007 23:57:30 +0000 (UTC) (envelope-from cnst@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l77NvUxQ050398 for ; Tue, 7 Aug 2007 23:57:30 GMT (envelope-from cnst@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l77NvUFe050395 for perforce@freebsd.org; Tue, 7 Aug 2007 23:57:30 GMT (envelope-from cnst@FreeBSD.org) Date: Tue, 7 Aug 2007 23:57:30 GMT Message-Id: <200708072357.l77NvUFe050395@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cnst@FreeBSD.org using -f From: "Constantine A. Murenin" To: Perforce Change Reviews Cc: Subject: PERFORCE change 124856 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 23:57:31 -0000 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);