Remove -c restrictions from previous commit.

This commit is contained in:
Dag-Erling Smørgrav 1998-08-26 18:51:37 +00:00
parent 37d818fb21
commit ce6f26dde3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38560

View File

@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
#endif
static const char rcsid[] =
"$Id: ping.c,v 1.39 1998/07/15 06:45:02 charnier Exp $";
"$Id: ping.c,v 1.40 1998/08/26 01:58:39 dillon Exp $";
#endif /* not lint */
/*
@ -125,9 +125,6 @@ int options;
#define F_MIF 0x1000
#define F_AUDIBLE 0x2000
#define NPACKETS 16
#define MAXUSRPACKETS 100
/*
* MAX_DUP_CHK is the number of bits in received table, i.e. the maximum
* number of received sequence numbers we can keep track of. Change 128
@ -232,9 +229,6 @@ main(argc, argv)
"invalid count of packets to transmit: `%s'",
optarg);
npackets = ultmp;
if (uid && npackets > MAXUSRPACKETS)
errx(EX_USAGE,
"you cannot send more than %d packets.", MAXUSRPACKETS);
break;
case 'd':
options |= F_SO_DEBUG;
@ -342,12 +336,6 @@ main(argc, argv)
usage();
target = argv[optind];
/*
* If not root, infinite packets not allowed. Limit to NPACKETS.
*/
if (uid && !npackets)
npackets = NPACKETS;
bzero((char *)&whereto, sizeof(struct sockaddr));
to = (struct sockaddr_in *)&whereto;
to->sin_family = AF_INET;