aboutsummaryrefslogtreecommitdiff
path: root/networking/netstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/netstat.c')
-rw-r--r--networking/netstat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/netstat.c b/networking/netstat.c
index d2b2d5ede..17a58876c 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -200,7 +200,7 @@ static void tcp_do_one(int lnr, const char *line)
200 } 200 }
201 201
202 if (num < 10) { 202 if (num < 10) {
203 error_msg("warning, got bogus tcp line."); 203 bb_error_msg("warning, got bogus tcp line.");
204 return; 204 return;
205 } 205 }
206 state_str = tcp_state[state]; 206 state_str = tcp_state[state];
@@ -271,7 +271,7 @@ static void udp_do_one(int lnr, const char *line)
271 } 271 }
272 272
273 if (num < 10) { 273 if (num < 10) {
274 error_msg("warning, got bogus udp line."); 274 bb_error_msg("warning, got bogus udp line.");
275 return; 275 return;
276 } 276 }
277 switch (state) { 277 switch (state) {
@@ -365,7 +365,7 @@ static void raw_do_one(int lnr, const char *line)
365 } 365 }
366 366
367 if (num < 10) { 367 if (num < 10) {
368 error_msg("warning, got bogus raw line."); 368 bb_error_msg("warning, got bogus raw line.");
369 return; 369 return;
370 } 370 }
371 state_str=itoa(state); 371 state_str=itoa(state);
@@ -418,7 +418,7 @@ static void unix_do_one(int nr, const char *line)
418 num = sscanf(line, "%p: %lX %lX %lX %X %X %d %s", 418 num = sscanf(line, "%p: %lX %lX %lX %X %X %d %s",
419 &d, &refcnt, &proto, &unix_flags, &type, &state, &inode, path); 419 &d, &refcnt, &proto, &unix_flags, &type, &state, &inode, path);
420 if (num < 6) { 420 if (num < 6) {
421 error_msg("warning, got bogus unix line."); 421 bb_error_msg("warning, got bogus unix line.");
422 return; 422 return;
423 } 423 }
424 if (!(has & HAS_INODE)) 424 if (!(has & HAS_INODE))
@@ -539,7 +539,7 @@ static void do_info(const char *file, const char *name, void (*proc)(int, const
539 if (errno != ENOENT) { 539 if (errno != ENOENT) {
540 perror(file); 540 perror(file);
541 } else { 541 } else {
542 error_msg("no support for `%s' on this system.", name); 542 bb_error_msg("no support for `%s' on this system.", name);
543 } 543 }
544 } else { 544 } else {
545 do { 545 do {
@@ -597,14 +597,14 @@ int netstat_main(int argc, char **argv)
597 new_flags |= NETSTAT_UNIX; 597 new_flags |= NETSTAT_UNIX;
598 break; 598 break;
599 default: 599 default:
600 show_usage(); 600 bb_show_usage();
601 } 601 }
602 if ( showroute ) { 602 if ( showroute ) {
603#ifdef CONFIG_ROUTE 603#ifdef CONFIG_ROUTE
604 displayroutes ( flags & NETSTAT_NUMERIC, !extended ); 604 displayroutes ( flags & NETSTAT_NUMERIC, !extended );
605 return 0; 605 return 0;
606#else 606#else
607 error_msg_and_die( "-r (display routing table) is not compiled in." ); 607 bb_error_msg_and_die( "-r (display routing table) is not compiled in." );
608#endif 608#endif
609 } 609 }
610 610