In Bug 78, shortkey points out:
[oweals/busybox.git] / networking / arping.c
index 2e1adf0a2cf217212d49c199c1138627aaa8b796..7279e8653733d09fbd1a218ee40567e0a37ae9d5 100644 (file)
 
 #define APPLET_NAME "arping"
 
-struct in_addr src;
-struct in_addr dst;
-struct sockaddr_ll me;
-struct sockaddr_ll he;
-struct timeval last;
-int dad;
-int unsolicited;
-int advert;
-int quiet;
-int quit_on_reply = 0;
-int count = -1;
-int timeout;
-int unicasting;
-int s;
-int broadcast_only;
-int sent;
-int brd_sent;
-int received;
-int brd_recv;
-int req_recv;
+static struct in_addr src;
+static struct in_addr dst;
+static struct sockaddr_ll me;
+static struct sockaddr_ll he;
+static struct timeval last;
+static int dad;
+static int unsolicited;
+static int advert;
+static int quiet;
+static int quit_on_reply = 0;
+static int count = -1;
+static int timeout;
+static int unicasting;
+static int s;
+static int broadcast_only;
+static int sent;
+static int brd_sent;
+static int received;
+static int brd_recv;
+static int req_recv;
 
 #define MS_TDIFF(tv1,tv2) ( ((tv1).tv_sec-(tv2).tv_sec)*1000 + \
                           ((tv1).tv_usec-(tv2).tv_usec)/1000 )
@@ -132,7 +132,7 @@ void finish(void)
 void catcher(void)
 {
        struct timeval tv;
-       struct timeval start;
+       static struct timeval start;
 
        gettimeofday(&tv, NULL);