svn commit: r229945 - in head/sbin: hastctl hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Jan 10 22:51:39 UTC 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20120110/eaa7f7e2/attachment.pgp
More information about the svn-src-head