aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 13:39:24 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 13:39:24 +0100
commit3581c625151d25d8e1cbc80c44337d398d97cf42 (patch)
tree86a1abc69a3606e6f595a18d72bd1eb48bc505b3 /networking
parent46685a46bbffc04d507ce756f4b703aae024debd (diff)
downloadbusybox-w32-3581c625151d25d8e1cbc80c44337d398d97cf42.tar.gz
busybox-w32-3581c625151d25d8e1cbc80c44337d398d97cf42.tar.bz2
busybox-w32-3581c625151d25d8e1cbc80c44337d398d97cf42.zip
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ftpd.c4
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/udhcp/leases.c2
-rw-r--r--networking/udhcp/script.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index fdc6f5e45..b7d5b20b1 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -716,7 +716,7 @@ handle_dir_common(int opts)
716 /* STAT <filename> */ 716 /* STAT <filename> */
717 cmdio_write_raw(STR(FTP_STATFILE_OK)"-File status:\r\n"); 717 cmdio_write_raw(STR(FTP_STATFILE_OK)"-File status:\r\n");
718 while (1) { 718 while (1) {
719 line = xmalloc_fgetline(ls_fp); 719 line = xmalloc_fgetline(ls_fp);
720 if (!line) 720 if (!line)
721 break; 721 break;
722 /* Hack: 0 results in no status at all */ 722 /* Hack: 0 results in no status at all */
@@ -731,7 +731,7 @@ handle_dir_common(int opts)
731 int remote_fd = get_remote_transfer_fd(" Directory listing"); 731 int remote_fd = get_remote_transfer_fd(" Directory listing");
732 if (remote_fd >= 0) { 732 if (remote_fd >= 0) {
733 while (1) { 733 while (1) {
734 line = xmalloc_fgetline(ls_fp); 734 line = xmalloc_fgetline(ls_fp);
735 if (!line) 735 if (!line)
736 break; 736 break;
737 /* I've seen clients complaining when they 737 /* I've seen clients complaining when they
diff --git a/networking/traceroute.c b/networking/traceroute.c
index a30decf10..2d3e77011 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -364,7 +364,7 @@ wait_for_reply(len_and_sockaddr *from_lsa, struct sockaddr *to)
364 read_len = recv_from_to(rcvsock, 364 read_len = recv_from_to(rcvsock,
365 recv_pkt, sizeof(recv_pkt), 365 recv_pkt, sizeof(recv_pkt),
366 /*flags:*/ 0, 366 /*flags:*/ 0,
367 &from_lsa->u.sa, to, from_lsa->len); 367 &from_lsa->u.sa, to, from_lsa->len);
368 } 368 }
369 369
370 return read_len; 370 return read_len;
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index afd41bfd4..78b0d0ade 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -66,7 +66,7 @@ struct dyn_lease* FAST_FUNC add_lease(
66 char *p; 66 char *p;
67 if (hostname_len > sizeof(oldest->hostname)) 67 if (hostname_len > sizeof(oldest->hostname))
68 hostname_len = sizeof(oldest->hostname); 68 hostname_len = sizeof(oldest->hostname);
69 p = safe_strncpy(oldest->hostname, hostname, hostname_len); 69 p = safe_strncpy(oldest->hostname, hostname, hostname_len);
70 /* sanitization (s/non-ASCII/^/g) */ 70 /* sanitization (s/non-ASCII/^/g) */
71 while (*p) { 71 while (*p) {
72 if (*p < ' ' || *p > 126) 72 if (*p < ' ' || *p > 126)
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c
index 065ea0cc7..574c74f45 100644
--- a/networking/udhcp/script.c
+++ b/networking/udhcp/script.c
@@ -17,7 +17,7 @@
17static const uint8_t len_of_option_as_string[] = { 17static const uint8_t len_of_option_as_string[] = {
18 [OPTION_IP] = sizeof("255.255.255.255 "), 18 [OPTION_IP] = sizeof("255.255.255.255 "),
19 [OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2, 19 [OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2,
20 [OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "), 20 [OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "),
21 [OPTION_STRING] = 1, 21 [OPTION_STRING] = 1,
22#if ENABLE_FEATURE_UDHCP_RFC3397 22#if ENABLE_FEATURE_UDHCP_RFC3397
23 [OPTION_STR1035] = 1, 23 [OPTION_STR1035] = 1,