Patch from Denis Vlasenko turning static const int (which gets emitted into
[oweals/busybox.git] / networking / ping6.c
index 72867f346a4e7fd022652ec2bbe082194ae14b41..72d1d667ab6d3d3cce43274d8ba344c3dce93442 100644 (file)
 #include <stddef.h>                            /* offsetof */
 #include "busybox.h"
 
-static const int DEFDATALEN = 56;
-static const int MAXIPLEN = 60;
-static const int MAXICMPLEN = 76;
-static const int MAXPACKET = 65468;
-#define        MAX_DUP_CHK     (8 * 128)
-static const int MAXWAIT = 10;
-static const int PINGINTERVAL = 1;             /* second */
+enum {
+       DEFDATALEN = 56,
+       MAXIPLEN = 60,
+       MAXICMPLEN = 76,
+       MAXPACKET = 65468,
+       MAX_DUP_CHK = (8 * 128),
+       MAXWAIT = 10,
+       PINGINTERVAL = 1                /* second */
+};
 
 #define O_QUIET         (1 << 0)
 #define O_VERBOSE       (1 << 1)
@@ -139,7 +141,7 @@ static void ping(const char *host)
        return;
 }
 
-extern int ping6_main(int argc, char **argv)
+int ping6_main(int argc, char **argv)
 {
        argc--;
        argv++;
@@ -246,7 +248,7 @@ static char *icmp6_type_name (int id)
        case ICMP6_MEMBERSHIP_QUERY:            return "Membership Query";
        case ICMP6_MEMBERSHIP_REPORT:           return "Membership Report";
        case ICMP6_MEMBERSHIP_REDUCTION:        return "Membership Reduction";
-       default:                                                        return "unknown ICMP type";
+       default:                                                        return "unknown ICMP type";
        }
 }
 
@@ -423,7 +425,7 @@ static void ping(const char *host)
        pingstats(0);
 }
 
-extern int ping6_main(int argc, char **argv)
+int ping6_main(int argc, char **argv)
 {
        char *thisarg;