summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-07 22:20:33 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-07 22:20:33 +0000
commit91c06e0a3ce5e0fafaa72f6355bcb81b4f979721 (patch)
treec501f657a3b13980947245c7287036d6f7754231
parent42646c5585b67eee6751a58d5db48e4c1281f813 (diff)
downloadbusybox-w32-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.tar.gz
busybox-w32-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.tar.bz2
busybox-w32-91c06e0a3ce5e0fafaa72f6355bcb81b4f979721.zip
arp: small fixes for user-supplied device name case
-rw-r--r--networking/arp.c4
1 files 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)
408 continue; 408 continue;
409 409
410 /* if the user specified device differs, skip it */ 410 /* if the user specified device differs, skip it */
411 if (device && strcmp(dev, device) != 0) 411 if (device[0])
412 continue; 412 continue;
413 413
414 shown++; 414 shown++;
@@ -432,7 +432,7 @@ static int arp_show(char *name)
432 entries, entries - shown, shown); 432 entries, entries - shown, shown);
433 433
434 if (!shown) { 434 if (!shown) {
435 if (hw_set || host[0] || device) 435 if (hw_set || host[0] || device[0])
436 printf("No match found in %d entries\n", entries); 436 printf("No match found in %d entries\n", entries);
437 } 437 }
438 438