Date: Tue, 14 Jul 2015 22:46:03 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Garrett Cooper <yaneurabeya@gmail.com> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers <src-committers@freebsd.org> Subject: Re: svn commit: r285552 - head/usr.bin/xargs Message-ID: <20150714204603.GO37597@ivaldir.etoilebsd.net> In-Reply-To: <48222CD1-7087-4C9A-A586-71F6A37A601C@gmail.com> References: <201507141916.t6EJGEG1083928@repo.freebsd.org> <48222CD1-7087-4C9A-A586-71F6A37A601C@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--yPSgZSQ6mfPWgZ9n Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 14, 2015 at 01:29:20PM -0700, Garrett Cooper wrote: > On Jul 14, 2015, at 12:16, Baptiste Daroussin <bapt@FreeBSD.org> wrote: >=20 > > Author: bapt > > Date: Tue Jul 14 19:16:14 2015 > > New Revision: 285552 > > URL: https://svnweb.freebsd.org/changeset/base/285552 > >=20 > > Log: > > Convert atoi(3) to stronum(3) which allows to arguments and report pro= per errors > > to the users >=20 > 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 h= ad this fixed so I just grabbed it so not reinvent wheel. Bapt --yPSgZSQ6mfPWgZ9n Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWldQsACgkQ8kTtMUmk6Ez+TwCggL4xoU8DbGB0h9c3w//h+mMG gIYAn3oPnnOnmtLRA7fHbm95qbuMCa7b =Jlio -----END PGP SIGNATURE----- --yPSgZSQ6mfPWgZ9n--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150714204603.GO37597>