On Tue, Jan 10, 2012 at 02:43:29PM -0800, Doug Barton wrote:
> On 01/10/2012 14:39, Pawel Jakub Dawidek wrote:
> >   For functions that return -1 on failure check exactly for -1 and not for
> >   any negative number.
> 
> what is the likelihood that at some point in the future the semantics
> for those functions will change, such that more than one negative value
> may be returned?

This is of course just being extra careful, but what if the function
will start returning negative values different than -1 on success?
This works in both direction, but is really only theory.

All in all, the manual pages now clearly state that those functions
return -1 on failure.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com

Attachment: pgpa38XgrZxH9.pgp
Description: PGP signature

Reply via email to