svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Sun Jan 7 14:20:34 PST 2007
Author: vda
Date: 2007-01-07 14:20:33 -0800 (Sun, 07 Jan 2007)
New Revision: 17198
Log:
arp: small fixes for user-supplied device name case
Modified:
trunk/busybox/networking/arp.c
Changeset:
Modified: trunk/busybox/networking/arp.c
===================================================================
--- trunk/busybox/networking/arp.c 2007-01-07 22:12:35 UTC (rev 17197)
+++ trunk/busybox/networking/arp.c 2007-01-07 22:20:33 UTC (rev 17198)
@@ -408,7 +408,7 @@
continue;
/* if the user specified device differs, skip it */
- if (device && strcmp(dev, device) != 0)
+ if (device[0])
continue;
shown++;
@@ -432,7 +432,7 @@
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);
}
More information about the busybox-cvs
mailing list