Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2018 01:19:10 +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-11@freebsd.org
Subject:   svn commit: r342143 - stable/11/sbin/ping
Message-ID:  <201812160119.wBG1JAcw090757@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Sun Dec 16 01:19:10 2018
New Revision: 342143
URL: https://svnweb.freebsd.org/changeset/base/342143

Log:
  MFC r341768,r341795: ping(8): remove needless comparision with LONG_MAX
  after unsigned long ultmp changed to long ltmp in r340245.

Modified:
  stable/11/sbin/ping/ping.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ping/ping.c
==============================================================================
--- stable/11/sbin/ping/ping.c	Sun Dec 16 01:17:27 2018	(r342142)
+++ stable/11/sbin/ping/ping.c	Sun Dec 16 01:19:10 2018	(r342143)
@@ -317,7 +317,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?201812160119.wBG1JAcw090757>