5e2c7fc773
to return void.
36 lines
980 B
Text
36 lines
980 B
Text
$NetBSD: patch-as,v 1.3 2013/03/03 01:07:24 joerg Exp $
|
|
|
|
Don't declare own errno.
|
|
|
|
--- support/multiping/multiping.c.orig 1999-11-05 04:53:11.000000000 +0000
|
|
+++ support/multiping/multiping.c
|
|
@@ -151,6 +151,8 @@ char *prognm ;
|
|
char *pr_addr();
|
|
void catcher(), prefinish(), finish();
|
|
|
|
+static void pr_pack(char *buf, int cc, struct sockaddr_in *from);
|
|
+
|
|
int packlen ;
|
|
u_char *packet;
|
|
|
|
@@ -158,7 +160,7 @@ main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
- extern int errno, optind;
|
|
+ extern int optind;
|
|
extern char *optarg;
|
|
struct timeval timeout;
|
|
struct protoent *proto;
|
|
@@ -518,10 +520,7 @@ mpinger()
|
|
* this program to be run without having intermingled output (or
|
|
* statistics!).
|
|
*/
|
|
-pr_pack(buf, cc, from)
|
|
- char *buf;
|
|
- int cc;
|
|
- struct sockaddr_in *from;
|
|
+static void pr_pack(char *buf, int cc, struct sockaddr_in *from)
|
|
{
|
|
register struct icmp *icp;
|
|
register u_long l;
|