arp: without -H <type>, assume "ether". closes 4564
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 15 Aug 2008 20:14:23 +0000 (20:14 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 15 Aug 2008 20:14:23 +0000 (20:14 -0000)
networking/arp.c

index 620f7c00fd03d5894cfb7a4d8b4f85876f32bc13..e2c5bbb7f6189767a6613cb9510731b400c99c51 100644 (file)
@@ -443,8 +443,8 @@ static int arp_show(char *name)
 int arp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int arp_main(int argc UNUSED_PARAM, char **argv)
 {
-       char *hw_type;
-       char *protocol;
+       const char *hw_type = "ether";
+       const char *protocol;
 
        /* Initialize variables... */
        ap = get_aftype(DFLT_AF);