summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-07 09:35:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-07 09:35:43 +0000
commit8e858e2700651a0e973169b579622cd3dcd0defd (patch)
tree4829004760bedec63aa8a72affe75591e482fe4a /networking
parent41cca2b4f54a2c8dadd2469747aca91d891c0b15 (diff)
downloadbusybox-w32-8e858e2700651a0e973169b579622cd3dcd0defd.tar.gz
busybox-w32-8e858e2700651a0e973169b579622cd3dcd0defd.tar.bz2
busybox-w32-8e858e2700651a0e973169b579622cd3dcd0defd.zip
clean up accumulated whitespace damage
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c7
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/udhcp/domain_codec.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index cb8ab763f..ee408eb14 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -873,8 +873,9 @@ static int sendHeaders(HttpResponseNum responseNum)
873 873
874#if ENABLE_FEATURE_HTTPD_BASIC_AUTH 874#if ENABLE_FEATURE_HTTPD_BASIC_AUTH
875 if (responseNum == HTTP_UNAUTHORIZED) { 875 if (responseNum == HTTP_UNAUTHORIZED) {
876 len += sprintf(buf+len, "WWW-Authenticate: Basic realm=\"%s\"\r\n", 876 len += sprintf(buf+len,
877 config->realm); 877 "WWW-Authenticate: Basic realm=\"%s\"\r\n",
878 config->realm);
878 } 879 }
879#endif 880#endif
880 if (responseNum == HTTP_MOVED_TEMPORARILY) { 881 if (responseNum == HTTP_MOVED_TEMPORARILY) {
@@ -2000,7 +2001,7 @@ int httpd_main(int argc, char *argv[])
2000 if (opt & OPT_SETUID) { 2001 if (opt & OPT_SETUID) {
2001 if (ugid.gid != (gid_t)-1) { 2002 if (ugid.gid != (gid_t)-1) {
2002 if (setgroups(1, &ugid.gid) == -1) 2003 if (setgroups(1, &ugid.gid) == -1)
2003 bb_perror_msg_and_die("setgroups"); 2004 bb_perror_msg_and_die("setgroups");
2004 xsetgid(ugid.gid); 2005 xsetgid(ugid.gid);
2005 } 2006 }
2006 xsetuid(ugid.uid); 2007 xsetuid(ugid.uid);
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index c7cb85350..8e750feaf 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -421,7 +421,7 @@ static int static_up(struct interface_defn_t *ifd, execfn *exec)
421 result += execute("ifconfig %iface% %address% netmask %netmask%" 421 result += execute("ifconfig %iface% %address% netmask %netmask%"
422 "[[ broadcast %broadcast%]][[ pointopoint %pointopoint%]] ", 422 "[[ broadcast %broadcast%]][[ pointopoint %pointopoint%]] ",
423 ifd, exec); 423 ifd, exec);
424 result += execute("[[route add default gw %gateway% %iface%]]", ifd, exec); 424 result += execute("[[route add default gw %gateway% %iface%]]", ifd, exec);
425 return ((result == 3) ? 3 : 0); 425 return ((result == 3) ? 3 : 0);
426#endif 426#endif
427} 427}
diff --git a/networking/udhcp/domain_codec.c b/networking/udhcp/domain_codec.c
index 6e16ddedc..239ae5b5c 100644
--- a/networking/udhcp/domain_codec.c
+++ b/networking/udhcp/domain_codec.c
@@ -200,6 +200,6 @@ uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen)
200 200
201 *retlen = d - dname + 1; 201 *retlen = d - dname + 1;
202 return dname; 202 return dname;
203} 203}
204 204
205#endif /* ENABLE_FEATURE_RFC3397 */ 205#endif /* ENABLE_FEATURE_RFC3397 */