summaryrefslogtreecommitdiff
path: root/net/nocol/patches/patch-as
blob: 46dfd36288e48282d0efb1af37ce36ac1d40d63a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$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;