aboutsummaryrefslogtreecommitdiff
path: root/networking/arp.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 01:34:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 01:34:48 +0100
commit6967578728a3eef43b7b2be4080dafc1b87f528d (patch)
tree76b79c4c81ce8e5ad4e57df5119efecef810e673 /networking/arp.c
parent52185155088d0910d29c7f4fdf5cb3eecaac8965 (diff)
downloadbusybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.tar.gz
busybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.tar.bz2
busybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.zip
whitespace fixes. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/arp.c')
-rw-r--r--networking/arp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 696c402e0..1c99987ae 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -214,7 +214,7 @@ static int arp_del(char **args)
214 214
215/* Get the hardware address to a specified interface name */ 215/* Get the hardware address to a specified interface name */
216static void arp_getdevhw(char *ifname, struct sockaddr *sa, 216static void arp_getdevhw(char *ifname, struct sockaddr *sa,
217 const struct hwtype *hwt) 217 const struct hwtype *hwt)
218{ 218{
219 struct ifreq ifr; 219 struct ifreq ifr;
220 const struct hwtype *xhw; 220 const struct hwtype *xhw;
@@ -233,8 +233,8 @@ static void arp_getdevhw(char *ifname, struct sockaddr *sa,
233 xhw = get_hwntype(-1); 233 xhw = get_hwntype(-1);
234 } 234 }
235 bb_error_msg("device '%s' has HW address %s '%s'", 235 bb_error_msg("device '%s' has HW address %s '%s'",
236 ifname, xhw->name, 236 ifname, xhw->name,
237 xhw->print((unsigned char *) &ifr.ifr_hwaddr.sa_data)); 237 xhw->print((unsigned char *) &ifr.ifr_hwaddr.sa_data));
238 } 238 }
239} 239}
240 240
@@ -345,7 +345,7 @@ static int arp_set(char **args)
345/* Print the contents of an ARP request block. */ 345/* Print the contents of an ARP request block. */
346static void 346static void
347arp_disp(const char *name, char *ip, int type, int arp_flags, 347arp_disp(const char *name, char *ip, int type, int arp_flags,
348 char *hwa, char *mask, char *dev) 348 char *hwa, char *mask, char *dev)
349{ 349{
350 static const int arp_masks[] = { 350 static const int arp_masks[] = {
351 ATF_PERM, ATF_PUBL, 351 ATF_PERM, ATF_PUBL,
@@ -428,7 +428,7 @@ static int arp_show(char *name)
428 /* All these strings can't overflow 428 /* All these strings can't overflow
429 * because fgets above reads limited amount of data */ 429 * because fgets above reads limited amount of data */
430 num = sscanf(line, "%s 0x%x 0x%x %s %s %s\n", 430 num = sscanf(line, "%s 0x%x 0x%x %s %s %s\n",
431 ip, &type, &flags, hwa, mask, dev); 431 ip, &type, &flags, hwa, mask, dev);
432 if (num < 4) 432 if (num < 4)
433 break; 433 break;
434 434
@@ -461,7 +461,7 @@ static int arp_show(char *name)
461 } 461 }
462 if (option_mask32 & ARP_OPT_v) 462 if (option_mask32 & ARP_OPT_v)
463 printf("Entries: %d\tSkipped: %d\tFound: %d\n", 463 printf("Entries: %d\tSkipped: %d\tFound: %d\n",
464 entries, entries - shown, shown); 464 entries, entries - shown, shown);
465 465
466 if (!shown) { 466 if (!shown) {
467 if (hw_set || host || device[0]) 467 if (hw_set || host || device[0])
@@ -517,7 +517,7 @@ int arp_main(int argc UNUSED_PARAM, char **argv)
517 517
518 if (hw->alen <= 0) { 518 if (hw->alen <= 0) {
519 bb_error_msg_and_die("%s: %s without ARP support", 519 bb_error_msg_and_die("%s: %s without ARP support",
520 hw->name, "hardware type"); 520 hw->name, "hardware type");
521 } 521 }
522 522
523 /* Now see what we have to do here... */ 523 /* Now see what we have to do here... */