diff options
author | Eric Andersen | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /networking/netstat.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-c7bda1ce659294d6e22c06e087f6f265983c7578.zip busybox-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'networking/netstat.c')
-rw-r--r-- | networking/netstat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/networking/netstat.c b/networking/netstat.c index 17a5887..bc1ed05 100644 --- a/networking/netstat.c +++ b/networking/netstat.c @@ -210,7 +210,7 @@ static void tcp_do_one(int lnr, const char *line) snprint_ip_port(local_addr, sizeof(local_addr), (struct sockaddr *) &localaddr, local_port, "tcp", flags&NETSTAT_NUMERIC); - + snprint_ip_port(rem_addr, sizeof(rem_addr), (struct sockaddr *) &remaddr, rem_port, "tcp", flags&NETSTAT_NUMERIC); @@ -305,7 +305,7 @@ static void udp_do_one(int lnr, const char *line) snprint_ip_port(local_addr, sizeof(local_addr), (struct sockaddr *) &localaddr, local_port, "udp", flags&NETSTAT_NUMERIC); - + snprint_ip_port(rem_addr, sizeof(rem_addr), (struct sockaddr *) &remaddr, rem_port, "udp", flags&NETSTAT_NUMERIC); @@ -387,7 +387,7 @@ static void raw_do_one(int lnr, const char *line) snprint_ip_port(local_addr, sizeof(local_addr), (struct sockaddr *) &localaddr, local_port, "raw", flags&NETSTAT_NUMERIC); - + snprint_ip_port(rem_addr, sizeof(rem_addr), (struct sockaddr *) &remaddr, rem_port, "raw", flags&NETSTAT_NUMERIC); @@ -558,7 +558,7 @@ int netstat_main(int argc, char **argv) { int opt; int new_flags=0; - int showroute = 0, extended = 0; + int showroute = 0, extended = 0; #ifdef CONFIG_FEATURE_IPV6 int inet=1; int inet6=1; @@ -600,14 +600,14 @@ int netstat_main(int argc, char **argv) bb_show_usage(); } if ( showroute ) { -#ifdef CONFIG_ROUTE +#ifdef CONFIG_ROUTE displayroutes ( flags & NETSTAT_NUMERIC, !extended ); - return 0; + return 0; #else bb_error_msg_and_die( "-r (display routing table) is not compiled in." ); #endif - } - + } + if (new_flags) { flags &= ~(NETSTAT_TCP|NETSTAT_UDP|NETSTAT_RAW|NETSTAT_UNIX); flags |= new_flags; |