diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2020-10-04 10:33:52 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2020-10-04 10:33:52 +0200 |
commit | 4d82ec085b807ff43966d40acfe3acffcd47bd42 (patch) | |
tree | 3d0753dd7846597644c7133c4f3c2799f7288b44 /modules/generators | |
parent | Save a few bytes of memory when registering Mutex (diff) | |
download | apache2-4d82ec085b807ff43966d40acfe3acffcd47bd42.tar.xz apache2-4d82ec085b807ff43966d40acfe3acffcd47bd42.zip |
Save a few bytes of memory in mod_autoindex
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators')
-rw-r--r-- | modules/generators/mod_autoindex.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index e43ba91dee..029f65732a 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -113,8 +113,8 @@ struct item { typedef struct ai_desc_t { char *pattern; char *description; - int full_path; - int wildcards; + unsigned int full_path : 1; + unsigned int wildcards : 1; } ai_desc_t; typedef struct autoindex_config_struct { @@ -753,9 +753,11 @@ struct ent { apr_off_t size; apr_time_t lm; struct ent *next; - int ascending, ignore_case, version_sort; + unsigned int ascending : 1; + unsigned int ignore_case : 1; + unsigned int version_sort : 1; + unsigned int isdir : 1; char key; - int isdir; }; static char *find_item(const char *content_type, const char *content_encoding, |