summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-30 00:29:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-30 00:29:55 +0000
commit4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b (patch)
tree7dfc507c1a7d14fb61d4fd0c68481e01b4a36ba1 /networking
parent4ef7d3a2de3df27dde80a64987202f10aebfe925 (diff)
downloadbusybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.tar.gz
busybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.tar.bz2
busybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.zip
whitespace fixes
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/nc_bloaty.c4
-rw-r--r--networking/netstat.c8
-rw-r--r--networking/tftp.c2
-rw-r--r--networking/udhcp/dhcpd.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 8e8341e96..2b748f11d 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -484,7 +484,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
484 ifd, exec); 484 ifd, exec);
485#else 485#else
486 return 0; /* no dhcp support */ 486 return 0; /* no dhcp support */
487#endif 487#endif
488} 488}
489 489
490static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) 490static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 3e333b7d5..5096e3227 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -350,7 +350,7 @@ create new one, and bind() it. TODO */
350 close(rr); 350 close(rr);
351 goto again; 351 goto again;
352 } 352 }
353 353
354 } else 354 } else
355 bb_error_msg_and_die("timeout"); 355 bb_error_msg_and_die("timeout");
356 unarm(); 356 unarm();
@@ -720,7 +720,7 @@ int nc_main(int argc, char **argv)
720 } 720 }
721 proggie = NULL; 721 proggie = NULL;
722 e_found: 722 e_found:
723 723
724 // -g -G -t -r deleted, unimplemented -a deleted too 724 // -g -G -t -r deleted, unimplemented -a deleted too
725 opt_complementary = "?2:vv"; /* max 2 params, -v is a counter */ 725 opt_complementary = "?2:vv"; /* max 2 params, -v is a counter */
726 getopt32(argc, argv, "hnp:s:uvw:" USE_NC_SERVER("l") 726 getopt32(argc, argv, "hnp:s:uvw:" USE_NC_SERVER("l")
diff --git a/networking/netstat.c b/networking/netstat.c
index 38091ae3a..d6c10b07b 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -98,13 +98,13 @@ static void build_ipv6_addr(char* local_addr, struct sockaddr_in6* localaddr)
98{ 98{
99 char addr6[INET6_ADDRSTRLEN]; 99 char addr6[INET6_ADDRSTRLEN];
100 struct in6_addr in6; 100 struct in6_addr in6;
101 101
102 sscanf(local_addr, "%08X%08X%08X%08X", 102 sscanf(local_addr, "%08X%08X%08X%08X",
103 &in6.s6_addr32[0], &in6.s6_addr32[1], 103 &in6.s6_addr32[0], &in6.s6_addr32[1],
104 &in6.s6_addr32[2], &in6.s6_addr32[3]); 104 &in6.s6_addr32[2], &in6.s6_addr32[3]);
105 inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6)); 105 inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6));
106 inet_pton(AF_INET6, addr6, (struct sockaddr *) &localaddr->sin6_addr); 106 inet_pton(AF_INET6, addr6, (struct sockaddr *) &localaddr->sin6_addr);
107 107
108 localaddr->sin6_family = AF_INET6; 108 localaddr->sin6_family = AF_INET6;
109} 109}
110#endif 110#endif
@@ -154,7 +154,7 @@ static void snprint_ip_port(char *ip_port, int size, struct sockaddr *addr, int
154 0xffffffff); 154 0xffffffff);
155 } 155 }
156 port_name = get_sname(htons(port), proto, numeric); 156 port_name = get_sname(htons(port), proto, numeric);
157 157
158 max_len = (option_mask32 & OPT_widedisplay) 158 max_len = (option_mask32 & OPT_widedisplay)
159 ? (PRINT_IP_MAX_SIZE_WIDE - 1) 159 ? (PRINT_IP_MAX_SIZE_WIDE - 1)
160 : (PRINT_IP_MAX_SIZE - 1); 160 : (PRINT_IP_MAX_SIZE - 1);
@@ -292,7 +292,7 @@ static void udp_do_one(int lnr, const char *line)
292 (struct sockaddr *) &remaddr, rem_port, 292 (struct sockaddr *) &remaddr, rem_port,
293 "udp", flags & NETSTAT_NUMERIC); 293 "udp", flags & NETSTAT_NUMERIC);
294 printf(net_conn_line, 294 printf(net_conn_line,
295 "udp", rxq, txq, local_addr, rem_addr, state_str); 295 "udp", rxq, txq, local_addr, rem_addr, state_str);
296 } 296 }
297 } 297 }
298} 298}
diff --git a/networking/tftp.c b/networking/tftp.c
index e1e278aba..8517830b7 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -353,7 +353,7 @@ static int tftp( USE_GETPUT(const int cmd,)
353 /* Server lost our TFTP_ACK. Resend it */ 353 /* Server lost our TFTP_ACK. Resend it */
354 block_nr = recv_blk; 354 block_nr = recv_blk;
355 continue; 355 continue;
356 } 356 }
357 } 357 }
358 358
359 if (CMD_PUT(cmd) && (opcode == TFTP_ACK)) { 359 if (CMD_PUT(cmd) && (opcode == TFTP_ACK)) {
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 9f96e8bd1..778121b61 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -37,8 +37,8 @@ int udhcpd_main(int argc, char **argv)
37//Huh, dhcpd don't have --foreground, --syslog options?? TODO 37//Huh, dhcpd don't have --foreground, --syslog options?? TODO
38 38
39 if (!ENABLE_FEATURE_UDHCP_DEBUG) { 39 if (!ENABLE_FEATURE_UDHCP_DEBUG) {
40 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); 40 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
41 logmode &= ~LOGMODE_STDIO; 41 logmode &= ~LOGMODE_STDIO;
42 } 42 }
43 43
44 if (ENABLE_FEATURE_UDHCP_SYSLOG) { 44 if (ENABLE_FEATURE_UDHCP_SYSLOG) {