aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ipaddress.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-07 20:17:41 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-07 20:17:41 +0000
commit19008b83735341c91fa8a09a072ffe9816c9e423 (patch)
tree6e35288c247102998a775cbc16f9ec014e00e7fd /networking/libiproute/ipaddress.c
parent4c5ad2fc90389bf1239f17d84967d07b82f31dd7 (diff)
downloadbusybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.tar.gz
busybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.tar.bz2
busybox-w32-19008b83735341c91fa8a09a072ffe9816c9e423.zip
- reuse strings and messages. Saves about 600B
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r--networking/libiproute/ipaddress.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index a048cff99..ee9825ba2 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -430,11 +430,11 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
430 430
431 if (flush) { 431 if (flush) {
432 if (argc <= 0) { 432 if (argc <= 0) {
433 fprintf(stderr, "Flush requires arguments.\n"); 433 bb_error_msg(bb_msg_requires_arg, "flush");
434 return -1; 434 return -1;
435 } 435 }
436 if (filter.family == AF_PACKET) { 436 if (filter.family == AF_PACKET) {
437 fprintf(stderr, "Cannot flush link addresses.\n"); 437 bb_error_msg("Cannot flush link addresses.");
438 return -1; 438 return -1;
439 } 439 }
440 } 440 }
@@ -456,7 +456,7 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
456 filter.scopemask = -1; 456 filter.scopemask = -1;
457 if (rtnl_rtscope_a2n(&scope, *argv)) { 457 if (rtnl_rtscope_a2n(&scope, *argv)) {
458 if (strcmp(*argv, "all") != 0) { 458 if (strcmp(*argv, "all") != 0) {
459 invarg("invalid \"scope\"\n", *argv); 459 invarg(*argv, "scope");
460 } 460 }
461 scope = RT_SCOPE_NOWHERE; 461 scope = RT_SCOPE_NOWHERE;
462 filter.scopemask = 0; 462 filter.scopemask = 0;
@@ -711,7 +711,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
711 uint32_t scope = 0; 711 uint32_t scope = 0;
712 NEXT_ARG(); 712 NEXT_ARG();
713 if (rtnl_rtscope_a2n(&scope, *argv)) { 713 if (rtnl_rtscope_a2n(&scope, *argv)) {
714 invarg(*argv, "invalid scope value"); 714 invarg(*argv, "scope");
715 } 715 }
716 req.ifa.ifa_scope = scope; 716 req.ifa.ifa_scope = scope;
717 scoped = 1; 717 scoped = 1;
@@ -744,7 +744,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
744 } 744 }
745 745
746 if (d == NULL) { 746 if (d == NULL) {
747 bb_error_msg("Not enough information: \"dev\" argument is required"); 747 bb_error_msg(bb_msg_requires_arg,"\"dev\"");
748 return -1; 748 return -1;
749 } 749 }
750 if (l && matches(d, l) != 0) { 750 if (l && matches(d, l) != 0) {