aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.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/iproute.c
parente63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff)
downloadbusybox-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.gz
silly size savings and capitalization fixes
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 6c902eb0e..077c9190e 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -398,7 +398,7 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
if (d) {
if ((idx = ll_name_to_index(d)) == 0) {
- bb_error_msg("Cannot find device \"%s\"", d);
+ bb_error_msg("cannot find device \"%s\"", d);
return -1;
}
addattr32(&req.n, sizeof(req), RTA_OIF, idx);
@@ -571,7 +571,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
if (id) {
if ((idx = ll_name_to_index(id)) == 0) {
- bb_error_msg("Cannot find device \"%s\"", id);
+ bb_error_msg("cannot find device \"%s\"", id);
return -1;
}
filter.iif = idx;
@@ -579,7 +579,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
}
if (od) {
if ((idx = ll_name_to_index(od)) == 0) {
- bb_error_msg("Cannot find device \"%s\"", od);
+ bb_error_msg("cannot find device \"%s\"", od);
}
filter.oif = idx;
filter.oifmask = -1;
@@ -608,7 +608,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
}
filter.flushed = 0;
if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) {
- bb_error_msg("Flush terminated");
+ bb_error_msg("flush terminated");
return -1;
}
if (filter.flushed == 0) {
@@ -622,16 +622,16 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
if (filter.tb != -1) {
if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) {
- bb_perror_msg_and_die("Cannot send dump request");
+ bb_perror_msg_and_die("cannot send dump request");
}
} else {
if (rtnl_rtcache_request(&rth, do_ipv6) < 0) {
- bb_perror_msg_and_die("Cannot send dump request");
+ bb_perror_msg_and_die("cannot send dump request");
}
}
if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) {
- bb_error_msg_and_die("Dump terminated");
+ bb_error_msg_and_die("dump terminated");
}
exit(0);
@@ -733,14 +733,14 @@ static int iproute_get(int argc, char **argv)
if (idev) {
if ((idx = ll_name_to_index(idev)) == 0) {
- bb_error_msg("Cannot find device \"%s\"", idev);
+ bb_error_msg("cannot find device \"%s\"", idev);
return -1;
}
addattr32(&req.n, sizeof(req), RTA_IIF, idx);
}
if (odev) {
if ((idx = ll_name_to_index(odev)) == 0) {
- bb_error_msg("Cannot find device \"%s\"", odev);
+ bb_error_msg("cannot find device \"%s\"", odev);
return -1;
}
addattr32(&req.n, sizeof(req), RTA_OIF, idx);
@@ -761,16 +761,16 @@ static int iproute_get(int argc, char **argv)
struct rtattr * tb[RTA_MAX+1];
if (print_route(NULL, &req.n, (void*)stdout) < 0) {
- bb_error_msg_and_die("An error :-)");
+ bb_error_msg_and_die("an error :-)");
}
if (req.n.nlmsg_type != RTM_NEWROUTE) {
- bb_error_msg("Not a route?");
+ bb_error_msg("not a route?");
return -1;
}
len -= NLMSG_LENGTH(sizeof(*r));
if (len < 0) {
- bb_error_msg("Wrong len %d", len);
+ bb_error_msg("wrong len %d", len);
return -1;
}
@@ -781,7 +781,7 @@ static int iproute_get(int argc, char **argv)
tb[RTA_PREFSRC]->rta_type = RTA_SRC;
r->rtm_src_len = 8*RTA_PAYLOAD(tb[RTA_PREFSRC]);
} else if (!tb[RTA_SRC]) {
- bb_error_msg("Failed to connect the route");
+ bb_error_msg("failed to connect the route");
return -1;
}
if (!odev && tb[RTA_OIF]) {
@@ -802,7 +802,7 @@ static int iproute_get(int argc, char **argv)
}
if (print_route(NULL, &req.n, (void*)stdout) < 0) {
- bb_error_msg_and_die("An error :-)");
+ bb_error_msg_and_die("an error :-)");
}
exit(0);
@@ -849,7 +849,7 @@ int do_iproute(int argc, char **argv)
case 12: /* flush */
return iproute_list_or_flush(argc-1, argv+1, 1);
default:
- bb_error_msg_and_die("Unknown command %s", *argv);
+ bb_error_msg_and_die("unknown command %s", *argv);
}
return iproute_modify(cmd, flags, argc-1, argv+1);