]> granicus.if.org Git - apache/commitdiff
change signed single-bit fields to unsigned
authorJeff Trawick <trawick@apache.org>
Tue, 29 Mar 2011 18:20:52 +0000 (18:20 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 29 Mar 2011 18:20:52 +0000 (18:20 +0000)
some of these were exposed to mods so the mmn is bumped, without
regard to whether any compiler will have to generate different
code

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086662 13f79535-47bb-0310-9956-ffa450edef68

include/ap_mmn.h
modules/cache/cache_disk_common.h
modules/cache/cache_util.h
modules/cache/mod_cache_disk.h
modules/mappers/mod_rewrite.c
modules/proxy/mod_proxy.h

index 097d5decb2b87afea5764c6e38966679796dc7a2..72f9f3f893b3e086e646c8248bb61faaee427a8a 100644 (file)
  * 20110312.1 (2.3.12-dev) Add core_dir_config.decode_encoded_slashes.
  * 20110328.0 (2.3.12-dev) change type and name of connectionPoolTTL in util_ldap_state_t 
                            connectionPoolTTL (connection_pool_ttl, int->apr_interval_t)
+ * 20110329.0 (2.3.12-dev) Change single-bit signed fields to unsigned in
+ *                         proxy and cache interfaces.
  */
 
 #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
 
 #ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20110328
+#define MODULE_MAGIC_NUMBER_MAJOR 20110329
 #endif
 #define MODULE_MAGIC_NUMBER_MINOR 0                    /* 0...n */
 
index 8cac2d5308f97d5d0a4693018ae349dc6ad969b4..ace569e863aee7e38a708bde3c103d885b9f5ab7 100644 (file)
@@ -58,8 +58,8 @@ typedef struct {
     apr_ino_t inode;
     apr_dev_t device;
     /* Does this cached request have a body? */
-    int has_body:1;
-    int header_only:1;
+    unsigned int has_body:1;
+    unsigned int header_only:1;
     /* The parsed cache control header */
     cache_control_t control;
 } disk_cache_info_t;
index 02c92c6409d4519b820f43ca7d6c27cab4caa4bd..eec38f3a6a353aaa0df5a61a5145d494651cae99 100644 (file)
@@ -127,32 +127,32 @@ typedef struct {
     apr_time_t lockmaxage;
     apr_uri_t *base_uri;
     /** ignore client's requests for uncached responses */
-    int ignorecachecontrol:1;
+    unsigned int ignorecachecontrol:1;
     /** ignore query-string when caching */
-    int ignorequerystring:1;
+    unsigned int ignorequerystring:1;
     /** run within the quick handler */
-    int quick:1;
+    unsigned int quick:1;
     /* thundering herd lock */
-    int lock:1;
-    int x_cache:1;
-    int x_cache_detail:1;
+    unsigned int lock:1;
+    unsigned int x_cache:1;
+    unsigned int x_cache_detail:1;
     /* flag if CacheIgnoreHeader has been set */
     #define CACHE_IGNORE_HEADERS_SET   1
     #define CACHE_IGNORE_HEADERS_UNSET 0
-    int ignore_headers_set:1;
+    unsigned int ignore_headers_set:1;
     /* flag if CacheIgnoreURLSessionIdentifiers has been set */
     #define CACHE_IGNORE_SESSION_ID_SET   1
     #define CACHE_IGNORE_SESSION_ID_UNSET 0
-    int ignore_session_id_set:1;
-    int base_uri_set:1;
-    int ignorecachecontrol_set:1;
-    int ignorequerystring_set:1;
-    int quick_set:1;
-    int lock_set:1;
-    int lockpath_set:1;
-    int lockmaxage_set:1;
-    int x_cache_set:1;
-    int x_cache_detail_set:1;
+    unsigned int ignore_session_id_set:1;
+    unsigned int base_uri_set:1;
+    unsigned int ignorecachecontrol_set:1;
+    unsigned int ignorequerystring_set:1;
+    unsigned int quick_set:1;
+    unsigned int lock_set:1;
+    unsigned int lockpath_set:1;
+    unsigned int lockmaxage_set:1;
+    unsigned int x_cache_set:1;
+    unsigned int x_cache_detail_set:1;
 } cache_server_conf;
 
 typedef struct {
@@ -167,33 +167,33 @@ typedef struct {
     /* cache enabled for this location */
     apr_array_header_t *cacheenable;
     /* cache disabled for this location */
-    int disable:1;
+    unsigned int disable:1;
     /* set X-Cache headers */
-    int x_cache:1;
-    int x_cache_detail:1;
+    unsigned int x_cache:1;
+    unsigned int x_cache_detail:1;
     /* serve stale on error */
-    int stale_on_error:1;
+    unsigned int stale_on_error:1;
     /** ignore the last-modified header when deciding to cache this request */
-    int no_last_mod_ignore:1;
+    unsigned int no_last_mod_ignore:1;
     /** ignore expiration date from server */
-    int store_expired:1;
+    unsigned int store_expired:1;
     /** ignore Cache-Control: private header from server */
-    int store_private:1;
+    unsigned int store_private:1;
     /** ignore Cache-Control: no-store header from client or server */
-    int store_nostore:1;
-    int minex_set:1;
-    int maxex_set:1;
-    int defex_set:1;
-    int factor_set:1;
-    int x_cache_set:1;
-    int x_cache_detail_set:1;
-    int stale_on_error_set:1;
-    int no_last_mod_ignore_set:1;
-    int store_expired_set:1;
-    int store_private_set:1;
-    int store_nostore_set:1;
-    int enable_set:1;
-    int disable_set:1;
+    unsigned int store_nostore:1;
+    unsigned int minex_set:1;
+    unsigned int maxex_set:1;
+    unsigned int defex_set:1;
+    unsigned int factor_set:1;
+    unsigned int x_cache_set:1;
+    unsigned int x_cache_detail_set:1;
+    unsigned int stale_on_error_set:1;
+    unsigned int no_last_mod_ignore_set:1;
+    unsigned int store_expired_set:1;
+    unsigned int store_private_set:1;
+    unsigned int store_nostore_set:1;
+    unsigned int enable_set:1;
+    unsigned int disable_set:1;
 } cache_dir_conf;
 
 /* A linked-list of authn providers. */
index 550f2a05cb45fb8dd1c759a68d84a02c30c4f9c3..809115a0e00bd856beeb76477b418ed86da7b34b 100644 (file)
@@ -54,7 +54,7 @@ typedef struct disk_cache_object {
     apr_table_t *headers_out;    /* Output headers to save */
     apr_off_t offset;            /* Max size to set aside */
     apr_time_t timeout;          /* Max time to set aside */
-    int done:1;                  /* Is the attempt to cache complete? */
+    unsigned int done:1;         /* Is the attempt to cache complete? */
 } disk_cache_object_t;
 
 
@@ -82,10 +82,10 @@ typedef struct {
     apr_off_t maxfs;             /* maximum file size for cached files */
     apr_off_t readsize;          /* maximum data to attempt to cache in one go */
     apr_time_t readtime;         /* maximum time taken to cache in one go */
-    int minfs_set:1;
-    int maxfs_set:1;
-    int readsize_set:1;
-    int readtime_set:1;
+    unsigned int minfs_set:1;
+    unsigned int maxfs_set:1;
+    unsigned int readsize_set:1;
+    unsigned int readtime_set:1;
 } disk_cache_dir_conf;
 
 #endif /*MOD_CACHE_DISK_H*/
index 25b348c44ce018df49254313bde5ecc6ec095c4b..e5381f0b9df8db11951a582db89491b6fe190fe3 100644 (file)
@@ -314,8 +314,8 @@ typedef struct {
     apr_array_header_t *rewriteconds; /* the RewriteCond entries (temp.)    */
     apr_array_header_t *rewriterules; /* the RewriteRule entries            */
     server_rec   *server;             /* the corresponding server indicator */
-    int state_set:1;
-    int options_set:1;
+    unsigned int state_set:1;
+    unsigned int options_set:1;
 } rewrite_server_conf;
 
 typedef struct {
@@ -325,9 +325,9 @@ typedef struct {
     apr_array_header_t *rewriterules; /* the RewriteRule entries           */
     char         *directory;          /* the directory where it applies    */
     const char   *baseurl;            /* the base-URL  where it applies    */
-    int state_set:1;
-    int options_set:1;
-    int baseurl_set:1;
+    unsigned int state_set:1;
+    unsigned int options_set:1;
+    unsigned int baseurl_set:1;
 } rewrite_perdir_conf;
 
 /* the (per-child) cache structures.
index a658dff9a34b11e6d2ee5f1e2c6237bbd37069aa..2a9309cf76262300ede4007d3fd95a2b2c19978a 100644 (file)
@@ -163,15 +163,15 @@ typedef struct {
     ap_slotmem_instance_t *slot;  /* balancers shm data - runtime */
     ap_slotmem_provider_t *storage;
 
-    int req_set:1;
-    int viaopt_set:1;
-    int recv_buffer_size_set:1;
-    int io_buffer_size_set:1;
-    int maxfwd_set:1;
-    int timeout_set:1;
-    int badopt_set:1;
-    int proxy_status_set:1;
-    int source_address_set:1;
+    unsigned int req_set:1;
+    unsigned int viaopt_set:1;
+    unsigned int recv_buffer_size_set:1;
+    unsigned int io_buffer_size_set:1;
+    unsigned int maxfwd_set:1;
+    unsigned int timeout_set:1;
+    unsigned int badopt_set:1;
+    unsigned int proxy_status_set:1;
+    unsigned int source_address_set:1;
 } proxy_server_conf;
 
 
@@ -204,12 +204,12 @@ typedef struct {
      * the error page, (so it will look like a error
      * returned from the rest of the system
      */
-    int error_override:1;
-    int preserve_host:1;
-    int preserve_host_set:1;
-    int error_override_set:1;
-    int alias_set:1;
-    int add_forwarded_headers:1;
+    unsigned int error_override:1;
+    unsigned int preserve_host:1;
+    unsigned int preserve_host_set:1;
+    unsigned int error_override_set:1;
+    unsigned int alias_set:1;
+    unsigned int add_forwarded_headers:1;
 } proxy_dir_conf;
 
 /* if we interpolate env vars per-request, we'll need a per-request
@@ -235,11 +235,11 @@ typedef struct {
     void         *forward;     /* opaque forward proxy data */
     apr_uint32_t flags;        /* Connection flags */
     apr_port_t   port;
-    int          is_ssl:1;
-    int          close:1;      /* Close 'this' connection */
-    int          need_flush:1; /* Flag to decide whether we need to flush the
+    unsigned int is_ssl:1;
+    unsigned int close:1;      /* Close 'this' connection */
+    unsigned int need_flush:1; /* Flag to decide whether we need to flush the
                                 * filter chain or not */
-    int          inreslist:1;  /* connection in apr_reslist? */
+    unsigned int inreslist:1;  /* connection in apr_reslist? */
 } proxy_conn_rec;
 
 typedef struct {