From owner-svn-src-head@freebsd.org Tue Jul 14 20:44:44 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21B719A162E; Tue, 14 Jul 2015 20:44:44 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anubis.delphij.net", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C3AA31D62; Tue, 14 Jul 2015 20:44:43 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from zeta.ixsystems.com (unknown [12.229.62.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id 078D51CF72; Tue, 14 Jul 2015 13:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphij.net; s=anubis; t=1436906683; x=1436921083; bh=/QUG0vhlHt7eAHN2scdfzOFR4pARUKFoWr+RvIwAbMg=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=JzEnjJZAVC8vN9gUHFGQbrRVsDzXfRJhiSOUcQOM+q4oB7/FYTisPKr/NnuKk2rX0 kQfcw3LMRXViSPR6LagcupE+D+xsaAFBcXSMsHSseOm7nY3Nnl+6QHMvW61WCnwgpX SNwweeEX3PIvBWBPFgOkDwFgsvlKuxJb8UTHfYD8= Message-ID: <55A574BA.4090700@delphij.net> Date: Tue, 14 Jul 2015 13:44:42 -0700 From: Xin Li Reply-To: d@delphij.net Organization: The FreeBSD Project MIME-Version: 1.0 To: Garrett Cooper , Baptiste Daroussin CC: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285552 - head/usr.bin/xargs References: <201507141916.t6EJGEG1083928@repo.freebsd.org> <48222CD1-7087-4C9A-A586-71F6A37A601C@gmail.com> In-Reply-To: <48222CD1-7087-4C9A-A586-71F6A37A601C@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 20:44:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 07/14/15 13:29, Garrett Cooper wrote: > On Jul 14, 2015, at 12:16, Baptiste Daroussin > 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? strtonum(3) is a wrapper of strtoll() and provides more functionality like range checking, so I think the answer would be yes. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1.6 (FreeBSD) iQIcBAEBCgAGBQJVpXS6AAoJEJW2GBstM+nsqmkQAIUaFCMKnnIELX4Fjbaw36QE T10YGtfrlza2QbBUrK9kuW7RJVBNSLy4Y7ENdTfRgEtC1Xcy/amSkbB+8AIvlvoT 916fLGuRdG3BPbvvWFOxYHMM7iocyysLPCG9/GFewLsudvUUDYF5pg6f7wDEV/W9 tdIc1B0j7ChPfktLuR/Y7idDJk7+jHN/nC9bf28qK8m6nYzJ4KK2WGzhCWE3C/3a gEtpCF6IQMospmvIE4+vxsBuYIp/InPMDE9K+6QXqt7bEtJH/23RhBoqhMsjmM5H +Slri+NgTizn7zTUfBpBK02UIVof0Fl7an/KTXUtK1Eei9sDI8h71WohYVb93Fnm dO+XxuLEETvifUZ+i/F9j/e0O1t+SJvey7k5gIEAetThX/LIb9z9OU4TVurpw76h PXjYuKxCITgylcsFR8MTEjNC+32EHtFdXWyUQErmylpDlwsjBoibAQn7Ly+pNAdH hDStaGas2ko1E+jBCwdanKeBbt6yPIV33O9pbUzeDunkbDbnStXK4CtR6u5Nj56e E+ZR+/wHBE0sy0pJ3J3QmRDDJ2LKz4OHi4agVSBhNj7IPhuef+LQROpkVQbagHmM Bszeq4/p8jwO+kERAZf7KeLOTtMuvRYuBz80Ni7TAqAxK5PrMYTGhLptKqw52HmK G4hvxuRV1jcvMCo90YvX =WZjG -----END PGP SIGNATURE-----