svn commit: r285552 - head/usr.bin/xargs

Baptiste Daroussin bapt at FreeBSD.org
Tue Jul 14 20:46:08 UTC 2015


On Tue, Jul 14, 2015 at 01:29:20PM -0700, Garrett Cooper wrote:
> On Jul 14, 2015, at 12:16, Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> 
> > Author: bapt
> > Date: Tue Jul 14 19:16:14 2015
> > New Revision: 285552
> > URL: https://svnweb.freebsd.org/changeset/base/285552
> > 
> > Log:
> >  Convert atoi(3) to stronum(3) which allows to arguments and report proper errors
> >  to the users
> 
> Is strtonum preferred over strtoll, etc?

I do personnaly prefer strtonum over strtoll, so I usually use it. in that
particular case of xargs I haven't chosen it, I just run into the issue due to
atoi an looked at others BSDs to see if they had fixed the issue. OpenBSD had
this fixed so I just grabbed it so not reinvent wheel.

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20150714/5809e527/attachment.bin>


More information about the svn-src-all mailing list