Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 21:11:15 +0000 (UTC)
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341768 - head/sbin/ping
Message-ID:  <201812092111.wB9LBFec011533@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Sun Dec  9 21:11:15 2018
New Revision: 341768
URL: https://svnweb.freebsd.org/changeset/base/341768

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

Modified:
  head/sbin/ping/ping.c

Modified: head/sbin/ping/ping.c
==============================================================================
--- head/sbin/ping/ping.c	Sun Dec  9 19:14:21 2018	(r341767)
+++ head/sbin/ping/ping.c	Sun Dec  9 21:11:15 2018	(r341768)
@@ -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?201812092111.wB9LBFec011533>