diff options
Diffstat (limited to '')
-rw-r--r-- | networking/libiproute/iproute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 6052a3023..511e89107 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -343,14 +343,14 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv) | |||
343 | NEXT_ARG(); | 343 | NEXT_ARG(); |
344 | } | 344 | } |
345 | if (get_unsigned(&mtu, *argv, 0)) { | 345 | if (get_unsigned(&mtu, *argv, 0)) { |
346 | invarg("\"mtu\" value is invalid\n", *argv); | 346 | invarg(*argv, "mtu"); |
347 | } | 347 | } |
348 | rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); | 348 | rta_addattr32(mxrta, sizeof(mxbuf), RTAX_MTU, mtu); |
349 | } else if (matches(*argv, "protocol") == 0) { | 349 | } else if (matches(*argv, "protocol") == 0) { |
350 | uint32_t prot; | 350 | uint32_t prot; |
351 | NEXT_ARG(); | 351 | NEXT_ARG(); |
352 | if (rtnl_rtprot_a2n(&prot, *argv)) | 352 | if (rtnl_rtprot_a2n(&prot, *argv)) |
353 | invarg("\"protocol\" value is invalid\n", *argv); | 353 | invarg(*argv, "protocol"); |
354 | req.r.rtm_protocol = prot; | 354 | req.r.rtm_protocol = prot; |
355 | proto_ok =1; | 355 | proto_ok =1; |
356 | } else if (strcmp(*argv, "dev") == 0 || | 356 | } else if (strcmp(*argv, "dev") == 0 || |
@@ -487,7 +487,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
487 | filter.tb = RT_TABLE_MAIN; | 487 | filter.tb = RT_TABLE_MAIN; |
488 | 488 | ||
489 | if (flush && argc <= 0) { | 489 | if (flush && argc <= 0) { |
490 | fprintf(stderr, "\"ip route flush\" requires arguments.\n"); | 490 | bb_error_msg(bb_msg_requires_arg, "\"ip route flush\""); |
491 | return -1; | 491 | return -1; |
492 | } | 492 | } |
493 | 493 | ||
@@ -498,7 +498,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
498 | filter.protocolmask = -1; | 498 | filter.protocolmask = -1; |
499 | if (rtnl_rtprot_a2n(&prot, *argv)) { | 499 | if (rtnl_rtprot_a2n(&prot, *argv)) { |
500 | if (strcmp(*argv, "all") != 0) { | 500 | if (strcmp(*argv, "all") != 0) { |
501 | invarg("invalid \"protocol\"\n", *argv); | 501 | invarg(*argv, "protocol"); |
502 | } | 502 | } |
503 | prot = 0; | 503 | prot = 0; |
504 | filter.protocolmask = 0; | 504 | filter.protocolmask = 0; |
@@ -541,7 +541,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush) | |||
541 | if (matches(*argv, "cache") == 0) { | 541 | if (matches(*argv, "cache") == 0) { |
542 | filter.tb = -1; | 542 | filter.tb = -1; |
543 | } else if (matches(*argv, "main") != 0) { | 543 | } else if (matches(*argv, "main") != 0) { |
544 | invarg("invalid \"table\"", *argv); | 544 | invarg(*argv, "table"); |
545 | } | 545 | } |
546 | } else if (matches(*argv, "cache") == 0) { | 546 | } else if (matches(*argv, "cache") == 0) { |
547 | filter.tb = -1; | 547 | filter.tb = -1; |