aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 19:56:34 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 19:56:34 +0000
commit9275814a9e6a3af390c932238c0b1130de8d0edd (patch)
treebeabb5991332e0e2af56b4cb885a8fd6fc7daae2 /networking/httpd.c
parentcf94446af7a75385955e0c4de2d5898b219f5719 (diff)
downloadbusybox-w32-9275814a9e6a3af390c932238c0b1130de8d0edd.tar.gz
busybox-w32-9275814a9e6a3af390c932238c0b1130de8d0edd.tar.bz2
busybox-w32-9275814a9e6a3af390c932238c0b1130de8d0edd.zip
lots of silly indent fixes
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 7388bb67e..e533594f2 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -325,20 +325,20 @@ static int scan_ip_mask(const char *ipm, unsigned int *ip, unsigned int *mask)
325 325
326 i = 0; 326 i = 0;
327 while (*p) { 327 while (*p) {
328 if (*p < '0' || *p > '9') { 328 if (*p < '0' || *p > '9') {
329 if (*p == '.') { 329 if (*p == '.') {
330 i = scan_ip(&ipm, mask, 0); 330 i = scan_ip(&ipm, mask, 0);
331 return i != 32; 331 return i != 32;
332 }
333 return -1;
334 } 332 }
335 i *= 10; 333 return -1;
336 i += *p - '0'; 334 }
337 p++; 335 i *= 10;
336 i += *p - '0';
337 p++;
338 } 338 }
339 } 339 }
340 if (i > 32 || i < 0) 340 if (i > 32 || i < 0)
341 return -1; 341 return -1;
342 msk = 0x80000000; 342 msk = 0x80000000;
343 *mask = 0; 343 *mask = 0;
344 while (i > 0) { 344 while (i > 0) {
@@ -553,7 +553,7 @@ static void parse_conf(const char *path, int flag)
553 } else if ((cf[1] == '.') && (cf[2] == '/' || cf[2] == 0)) { 553 } else if ((cf[1] == '.') && (cf[2] == '/' || cf[2] == 0)) {
554 ++cf; 554 ++cf;
555 if (p > p0) { 555 if (p > p0) {
556 while (*--p != '/'); /* omit previous dir */ 556 while (*--p != '/') /* omit previous dir */;
557 } 557 }
558 continue; 558 continue;
559 } 559 }
@@ -1571,8 +1571,8 @@ BAD_REQUEST:
1571 /* protect out root */ 1571 /* protect out root */
1572 goto BAD_REQUEST; 1572 goto BAD_REQUEST;
1573 } 1573 }
1574 while (*--purl != '/'); /* omit previous dir */ 1574 while (*--purl != '/') /* omit previous dir */;
1575 continue; 1575 continue;
1576 } 1576 }
1577 } 1577 }
1578 } 1578 }