diff options
author | Denis Vlasenko | 2007-06-25 10:55:35 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-06-25 10:55:35 +0000 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /networking/httpd.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) | |
download | busybox-80b8b39899a09c7516920cda5fd343b3086d4824.zip busybox-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz |
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 8c0a83e..383a006 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -878,11 +878,8 @@ static int sendHeaders(HttpResponseNum responseNum) time_t timer = time(0); char timeStr[80]; int len; - enum { - numNames = sizeof(httpResponseNames) / sizeof(httpResponseNames[0]) - }; - for (i = 0; i < numNames; i++) { + for (i = 0; i < ARRAY_SIZE(httpResponseNames); i++) { if (httpResponseNames[i].type == responseNum) { responseString = httpResponseNames[i].name; infoString = httpResponseNames[i].info; |