diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-07 22:20:33 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-07 22:20:33 +0000 |
commit | a038d173bf36d8b7d1cd11e6f53c4399650d205b (patch) | |
tree | c501f657a3b13980947245c7287036d6f7754231 | |
parent | f3f61be314793d69b0514b34a38cd4dddbf014c5 (diff) | |
download | busybox-w32-a038d173bf36d8b7d1cd11e6f53c4399650d205b.tar.gz busybox-w32-a038d173bf36d8b7d1cd11e6f53c4399650d205b.tar.bz2 busybox-w32-a038d173bf36d8b7d1cd11e6f53c4399650d205b.zip |
arp: small fixes for user-supplied device name case
git-svn-id: svn://busybox.net/trunk/busybox@17198 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | networking/arp.c | 4 |
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 | ||