From a038d173bf36d8b7d1cd11e6f53c4399650d205b Mon Sep 17 00:00:00 2001 From: vda Date: Sun, 7 Jan 2007 22:20:33 +0000 Subject: arp: small fixes for user-supplied device name case git-svn-id: svn://busybox.net/trunk/busybox@17198 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- networking/arp.c | 4 ++-- 1 file 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); } -- cgit v1.2.3-55-g6feb