summaryrefslogtreecommitdiff
path: root/networking/arp.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-15 20:14:23 +0000
committerDenis Vlasenko2008-08-15 20:14:23 +0000
commitec7e7aec8a7676141ad61cd9e7f38d9942ba760f (patch)
tree67407b8a01516ea3b118a3f6dce8e51c1d87ce55 /networking/arp.c
parentc80191c1d9bb0abcd25876cbccc4c1cc26a2544d (diff)
downloadbusybox-ec7e7aec8a7676141ad61cd9e7f38d9942ba760f.zip
busybox-ec7e7aec8a7676141ad61cd9e7f38d9942ba760f.tar.gz
arp: without -H <type>, assume "ether". closes 4564
Diffstat (limited to 'networking/arp.c')
-rw-r--r--networking/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 620f7c0..e2c5bbb 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -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);