hostname declaration was misplaced
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jan 2007 22:12:35 +0000 (22:12 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jan 2007 22:12:35 +0000 (22:12 -0000)
networking/ping6.c

index c691fa74b182080767d1b8a09ec1cacf33b99b9e..b67fab5b395f5dd2b6f8f28bede8b315348dd04c 100644 (file)
@@ -42,14 +42,14 @@ enum {
        PINGINTERVAL = 1                /* second */
 };
 
-static const char *hostname;
-
 static void ping(const char *host);
 
 #ifndef CONFIG_FEATURE_FANCY_PING6
 
 /* simple version */
 
+static const char *hostname;
+
 static void noresp(int ign)
 {
        printf("No response from %s\n", hostname);