diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-07 22:20:33 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-07 22:20:33 +0000 |
commit | 91c06e0a3ce5e0fafaa72f6355bcb81b4f979721 (patch) | |
tree | c501f657a3b13980947245c7287036d6f7754231 /networking/arp.c | |
parent | 42646c5585b67eee6751a58d5db48e4c1281f813 (diff) | |
download | busybox-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.tar.gz |
arp: small fixes for user-supplied device name case
Diffstat (limited to 'networking/arp.c')
-rw-r--r-- | networking/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/arp.c b/networking/arp.c index fd418cc3f..872d44b0b 100644 --- a/networking/arp.c +++ b/networking/arp.c @@ -408,7 +408,7 @@ static int arp_show(char *name) continue; /* if the user specified device differs, skip it */ - if (device && strcmp(dev, device) != 0) + if (device[0]) continue; shown++; @@ -432,7 +432,7 @@ static int arp_show(char *name) entries, entries - shown, shown); if (!shown) { - if (hw_set || host[0] || device) + if (hw_set || host[0] || device[0]) printf("No match found in %d entries\n", entries); } |