From: Denis Vlasenko Date: Sun, 7 Jan 2007 22:20:33 +0000 (-0000) Subject: arp: small fixes for user-supplied device name case X-Git-Tag: 1_4_0~73 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91c06e0a3ce5e0fafaa72f6355bcb81b4f979721;p=oweals%2Fbusybox.git arp: small fixes for user-supplied device name case --- 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); }