From 91c06e0a3ce5e0fafaa72f6355bcb81b4f979721 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 7 Jan 2007 22:20:33 +0000 Subject: arp: small fixes for user-supplied device name case --- networking/arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/arp.c') 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