Date: Sun, 16 Dec 2018 01:17:27 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r342142 - stable/12/sbin/ping Message-ID: <201812160117.wBG1HR3C090634@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Sun Dec 16 01:17:27 2018 New Revision: 342142 URL: https://svnweb.freebsd.org/changeset/base/342142 Log: MFC r341768,r341795: ping(8): remove needless comparision with LONG_MAX after unsigned long ultmp changed to long ltmp in r340245. Modified: stable/12/sbin/ping/ping.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sbin/ping/ping.c ============================================================================== --- stable/12/sbin/ping/ping.c Sat Dec 15 23:20:08 2018 (r342141) +++ stable/12/sbin/ping/ping.c Sun Dec 16 01:17:27 2018 (r342142) @@ -313,7 +313,7 @@ main(int argc, char *const *argv) break; case 'c': ltmp = strtol(optarg, &ep, 0); - if (*ep || ep == optarg || ltmp > LONG_MAX || ltmp <=0) + if (*ep || ep == optarg || ltmp <= 0) errx(EX_USAGE, "invalid count of packets to transmit: `%s'", optarg);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812160117.wBG1HR3C090634>