diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /networking/httpd.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) | |
download | busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.bz2 busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.zip |
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 8c0a83e52..383a00635 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -878,11 +878,8 @@ static int sendHeaders(HttpResponseNum responseNum) | |||
878 | time_t timer = time(0); | 878 | time_t timer = time(0); |
879 | char timeStr[80]; | 879 | char timeStr[80]; |
880 | int len; | 880 | int len; |
881 | enum { | ||
882 | numNames = sizeof(httpResponseNames) / sizeof(httpResponseNames[0]) | ||
883 | }; | ||
884 | 881 | ||
885 | for (i = 0; i < numNames; i++) { | 882 | for (i = 0; i < ARRAY_SIZE(httpResponseNames); i++) { |
886 | if (httpResponseNames[i].type == responseNum) { | 883 | if (httpResponseNames[i].type == responseNum) { |
887 | responseString = httpResponseNames[i].name; | 884 | responseString = httpResponseNames[i].name; |
888 | infoString = httpResponseNames[i].info; | 885 | infoString = httpResponseNames[i].info; |