diff options
author | Denis Vlasenko | 2006-10-03 19:56:34 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-03 19:56:34 +0000 |
commit | 9275814a9e6a3af390c932238c0b1130de8d0edd (patch) | |
tree | beabb5991332e0e2af56b4cb885a8fd6fc7daae2 /networking/httpd.c | |
parent | cf94446af7a75385955e0c4de2d5898b219f5719 (diff) | |
download | busybox-9275814a9e6a3af390c932238c0b1130de8d0edd.zip busybox-9275814a9e6a3af390c932238c0b1130de8d0edd.tar.gz |
lots of silly indent fixes
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 7388bb6..e533594 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) i = 0; while (*p) { - if (*p < '0' || *p > '9') { - if (*p == '.') { - i = scan_ip(&ipm, mask, 0); - return i != 32; - } - return -1; + if (*p < '0' || *p > '9') { + if (*p == '.') { + i = scan_ip(&ipm, mask, 0); + return i != 32; } - i *= 10; - i += *p - '0'; - p++; + return -1; + } + i *= 10; + i += *p - '0'; + p++; } } if (i > 32 || i < 0) - return -1; + return -1; msk = 0x80000000; *mask = 0; while (i > 0) { @@ -553,7 +553,7 @@ static void parse_conf(const char *path, int flag) } else if ((cf[1] == '.') && (cf[2] == '/' || cf[2] == 0)) { ++cf; if (p > p0) { - while (*--p != '/'); /* omit previous dir */ + while (*--p != '/') /* omit previous dir */; } continue; } @@ -1571,8 +1571,8 @@ BAD_REQUEST: /* protect out root */ goto BAD_REQUEST; } - while (*--purl != '/'); /* omit previous dir */ - continue; + while (*--purl != '/') /* omit previous dir */; + continue; } } } |