aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ipaddress.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 00:37:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 00:37:00 +0000
commitc6f188def8c5496dbd65c9be6ca3050286db7227 (patch)
treed8e1e56c728628c15f66cb88a6e54f368c806939 /networking/libiproute/ipaddress.c
parente63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff)
downloadbusybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.gz
busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.bz2
busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.zip
silly size savings and capitalization fixes
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r--networking/libiproute/ipaddress.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 262d3e356..35fd099fa 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -435,7 +435,7 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
435 return -1; 435 return -1;
436 } 436 }
437 if (filter.family == AF_PACKET) { 437 if (filter.family == AF_PACKET) {
438 bb_error_msg("Cannot flush link addresses."); 438 bb_error_msg("cannot flush link addresses");
439 return -1; 439 return -1;
440 } 440 }
441 } 441 }
@@ -488,17 +488,17 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
488 exit(1); 488 exit(1);
489 489
490 if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) { 490 if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) {
491 bb_perror_msg_and_die("Cannot send dump request"); 491 bb_perror_msg_and_die("cannot send dump request");
492 } 492 }
493 493
494 if (rtnl_dump_filter(&rth, store_nlmsg, &linfo, NULL, NULL) < 0) { 494 if (rtnl_dump_filter(&rth, store_nlmsg, &linfo, NULL, NULL) < 0) {
495 bb_error_msg_and_die("Dump terminated"); 495 bb_error_msg_and_die("dump terminated");
496 } 496 }
497 497
498 if (filter_dev) { 498 if (filter_dev) {
499 filter.ifindex = ll_name_to_index(filter_dev); 499 filter.ifindex = ll_name_to_index(filter_dev);
500 if (filter.ifindex <= 0) { 500 if (filter.ifindex <= 0) {
501 bb_error_msg("Device \"%s\" does not exist", filter_dev); 501 bb_error_msg("device \"%s\" does not exist", filter_dev);
502 return -1; 502 return -1;
503 } 503 }
504 } 504 }
@@ -532,11 +532,11 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
532 532
533 if (filter.family != AF_PACKET) { 533 if (filter.family != AF_PACKET) {
534 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) { 534 if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) {
535 bb_perror_msg_and_die("Cannot send dump request"); 535 bb_perror_msg_and_die("cannot send dump request");
536 } 536 }
537 537
538 if (rtnl_dump_filter(&rth, store_nlmsg, &ainfo, NULL, NULL) < 0) { 538 if (rtnl_dump_filter(&rth, store_nlmsg, &ainfo, NULL, NULL) < 0) {
539 bb_error_msg_and_die("Dump terminated"); 539 bb_error_msg_and_die("dump terminated");
540 } 540 }
541 } 541 }
542 542
@@ -763,7 +763,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
763 inet_prefix brd; 763 inet_prefix brd;
764 int i; 764 int i;
765 if (req.ifa.ifa_family != AF_INET) { 765 if (req.ifa.ifa_family != AF_INET) {
766 bb_error_msg("Broadcast can be set only for IPv4 addresses"); 766 bb_error_msg("broadcast can be set only for IPv4 addresses");
767 return -1; 767 return -1;
768 } 768 }
769 brd = peer; 769 brd = peer;
@@ -787,7 +787,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
787 ll_init_map(&rth); 787 ll_init_map(&rth);
788 788
789 if ((req.ifa.ifa_index = ll_name_to_index(d)) == 0) { 789 if ((req.ifa.ifa_index = ll_name_to_index(d)) == 0) {
790 bb_error_msg("Cannot find device \"%s\"", d); 790 bb_error_msg("cannot find device \"%s\"", d);
791 return -1; 791 return -1;
792 } 792 }
793 793