On 01/10/2016 08:20 PM, j...@apache.org wrote:
> Author: jim
> Date: Sun Jan 10 19:20:31 2016
> New Revision: 1723953
> 
> URL: http://svn.apache.org/viewvc?rev=1723953&view=rev
> Log:
> Use enums and structs to keep things better organized
> 
> Modified:
>     httpd/httpd/trunk/modules/proxy/mod_proxy.h
>     httpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c
> 
> Modified: httpd/httpd/trunk/modules/proxy/mod_proxy.h
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy.h?rev=1723953&r1=1723952&r2=1723953&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/proxy/mod_proxy.h (original)
> +++ httpd/httpd/trunk/modules/proxy/mod_proxy.h Sun Jan 10 19:20:31 2016
> @@ -75,6 +75,26 @@ enum enctype {
>      enc_path, enc_search, enc_user, enc_fpath, enc_parm
>  };
>  
> +typedef enum {
> +    NONE, TCP, OPTIONS, HEAD, GET, CPING, PROVIDER, EOT
> +} hcmethod_t;
> +
> +typedef struct {
> +    hcmethod_t method;
> +    char *name;
> +} hcmethods_t;
> +
> +static hcmethods_t hcmethods[] = {
> +        {NONE, "NONE"},
> +        {TCP, "TCP"},
> +        {OPTIONS, "OPTIONS"},
> +        {HEAD, "HEAD"},
> +        {GET, "GET"},
> +        {CPING, "CPING"},
> +        {PROVIDER, "PROVIDER"},
> +        {EOT, NULL}
> +};

Shouldn't the above move over to mod_proxy.c ?

Otherwise we see

mod_proxy.h:87: warning: ‘hcmethods’ defined but not used

numerous time from c files where mod_proxy.h gets included but hcmethods not 
used.

Regards

Rüdiger

Reply via email to