You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2020/10/04 08:33:53 UTC
svn commit: r1882231 - /httpd/httpd/trunk/modules/generators/mod_autoindex.c
Author: jailletc36
Date: Sun Oct 4 08:33:52 2020
New Revision: 1882231
URL: http://svn.apache.org/viewvc?rev=1882231&view=rev
Log:
Save a few bytes of memory in mod_autoindex
Modified:
httpd/httpd/trunk/modules/generators/mod_autoindex.c
Modified: httpd/httpd/trunk/modules/generators/mod_autoindex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_autoindex.c?rev=1882231&r1=1882230&r2=1882231&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_autoindex.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_autoindex.c Sun Oct 4 08:33:52 2020
@@ -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,