summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-07 22:20:33 +0000
committerDenis Vlasenko2007-01-07 22:20:33 +0000
commit91c06e0a3ce5e0fafaa72f6355bcb81b4f979721 (patch)
treec501f657a3b13980947245c7287036d6f7754231 /networking
parent42646c5585b67eee6751a58d5db48e4c1281f813 (diff)
downloadbusybox-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.zip
busybox-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.tar.gz
arp: small fixes for user-supplied device name case
Diffstat (limited to 'networking')
-rw-r--r--networking/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/arp.c b/networking/arp.c
index fd418cc..872d44b 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);
}