From 19008b83735341c91fa8a09a072ffe9816c9e423 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 7 Jun 2006 20:17:41 +0000 Subject: - reuse strings and messages. Saves about 600B --- networking/libiproute/ipaddress.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'networking/libiproute/ipaddress.c') 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) if (flush) { if (argc <= 0) { - fprintf(stderr, "Flush requires arguments.\n"); + bb_error_msg(bb_msg_requires_arg, "flush"); return -1; } if (filter.family == AF_PACKET) { - fprintf(stderr, "Cannot flush link addresses.\n"); + bb_error_msg("Cannot flush link addresses."); return -1; } } @@ -456,7 +456,7 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush) filter.scopemask = -1; if (rtnl_rtscope_a2n(&scope, *argv)) { if (strcmp(*argv, "all") != 0) { - invarg("invalid \"scope\"\n", *argv); + invarg(*argv, "scope"); } scope = RT_SCOPE_NOWHERE; filter.scopemask = 0; @@ -711,7 +711,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) uint32_t scope = 0; NEXT_ARG(); if (rtnl_rtscope_a2n(&scope, *argv)) { - invarg(*argv, "invalid scope value"); + invarg(*argv, "scope"); } req.ifa.ifa_scope = scope; scoped = 1; @@ -744,7 +744,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) } if (d == NULL) { - bb_error_msg("Not enough information: \"dev\" argument is required"); + bb_error_msg(bb_msg_requires_arg,"\"dev\""); return -1; } if (l && matches(d, l) != 0) { -- cgit v1.2.3