summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}