httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Rumph <mike.ru...@oracle.com>
Subject Re: svn commit: r1653941 - in /httpd/httpd/trunk: CHANGES docs/manual/expr.xml docs/manual/mod/mod_alias.xml modules/mappers/mod_alias.c
Date Thu, 22 Jan 2015 17:54:33 GMT

On 1/22/2015 9:02 AM, minfrin@apache.org wrote:
> ==============================================================================
> --- httpd/httpd/trunk/modules/mappers/mod_alias.c (original)
> +++ httpd/httpd/trunk/modules/mappers/mod_alias.c Thu Jan 22 17:02:22 2015
> @@ -34,6 +34,7 @@
>   #include "http_config.h"
>   #include "http_request.h"
>   #include "http_log.h"
> +#include "ap_expr.h"
>   
>   
>   typedef struct {
> @@ -50,11 +51,20 @@ typedef struct {
>   } alias_server_conf;
>   
>   typedef struct {
> +    int alias_set:1;
> +    int redirect_set:1;
>       apr_array_header_t *redirects;
> +    const ap_expr_info_t *alias;
> +    char *handler;
> +    const ap_expr_info_t *redirect;
> +    int redirect_status;                /* 301, 302, 303, 410, etc */
>   } alias_dir_conf;
>
It might be preferred to use unsigned int for bit fields as is used in 
mod_proxy.h.
IIRC there have been past discussions on problems resulting from signed 
bit fields.


Mime
View raw message