Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 16:48:43 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        "J. Mallett" <jmallett@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: [cvs] cvs commit: src/bin/ps nlist.c
Message-ID:  <20020606214843.GB30557@madman.nectar.cc>
In-Reply-To: <20020606205924.748F937B401@hub.freebsd.org>
References:  <20020606205924.748F937B401@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 06, 2002 at 01:59:24PM -0700, J. Mallett wrote:
> jmallett    2002/06/06 13:59:16 PDT
> 
>   Modified files:
>     bin/ps               nlist.c 
>   Log:
>   sysctlbyname(3) returns -1 on failure, not any other value < 0.

I hope you are not planning to do a lot of this kind of thing.  I     
realize you are working on ps right now, so it may not be disruptive, 
but please don't go around changing this kind of thing without some   
reason.                                                               

> -	if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) < 0)
> +	if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1)
>  		return (1);

Cheers,
-- 
Jacques A. Vidrine <n@nectar.cc>                 http://www.nectar.cc/
NTT/Verio SME          .     FreeBSD UNIX     .       Heimdal Kerberos
jvidrine@verio.net     .  nectar@FreeBSD.org  .          nectar@kth.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020606214843.GB30557>