projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42646c5
)
arp: small fixes for user-supplied device name case
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Jan 2007 22:20:33 +0000
(22:20 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Jan 2007 22:20:33 +0000
(22:20 -0000)
networking/arp.c
patch
|
blob
|
history
diff --git
a/networking/arp.c
b/networking/arp.c
index fd418cc3f12fd52f7a401c2babda64b1adb82534..872d44b0bfd5290067ce86b2e6d8131049b031d0 100644
(file)
--- 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);
}