From: Ryan Bloom Date: Tue, 17 Oct 2000 14:37:46 +0000 (+0000) Subject: Remove some annoying warnings from http_protocol. This is untested, but X-Git-Tag: APACHE_2_0_ALPHA_8~339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=894e2e7ab9a546a97ae0f0ff49088b0bda41b92c;p=thirdparty%2Fapache%2Fhttpd.git Remove some annoying warnings from http_protocol. This is untested, but it makes sense logically. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86627 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index ed185975e90..4124668c3c1 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1911,6 +1911,7 @@ AP_DECLARE(int) ap_method_in_list(ap_method_list_t *l, const char *method) if ((l->method_list = NULL) || (l->method_list->nelts == 0)) { return 0; } + methods = (char **)l->method_list->elts; for (i = 0; i < l->method_list->nelts; ++i) { if (strcmp(method, methods[i]) == 0) { return 1; @@ -1918,7 +1919,7 @@ AP_DECLARE(int) ap_method_in_list(ap_method_list_t *l, const char *method) } return 0; } - + /* * Add the specified method to a method list (if it isn't already there). */ @@ -1942,6 +1943,7 @@ AP_DECLARE(void) ap_method_list_add(ap_method_list_t *l, const char *method) * Otherwise, see if the method name is in the array of string names. */ if (l->method_list->nelts != 0) { + methods = (char **)l->method_list->elts; for (i = 0; i < l->method_list->nelts; ++i) { if (strcmp(method, methods[i]) == 0) { return; @@ -1975,6 +1977,7 @@ AP_DECLARE(void) ap_method_list_remove(ap_method_list_t *l, */ if (l->method_list->nelts != 0) { register int i, j, k; + methods = (char **)l->method_list->elts; for (i = 0; i < l->method_list->nelts; ) { if (strcmp(method, methods[i]) == 0) { for (j = i, k = i + 1; k < l->method_list->nelts; ++j, ++k) {