]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Save a few bytes of memory when registering Mutex
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 4 Oct 2020 07:21:59 +0000 (07:21 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 4 Oct 2020 07:21:59 +0000 (07:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1882228 13f79535-47bb-0310-9956-ffa450edef68

server/util_mutex.c

index 6c5fea1218eadcd8242e8a482390ba217c9f2cdc..be3f45beeb71dbd04dae4fd1deaa0672187179a2 100644 (file)
@@ -128,9 +128,9 @@ AP_DECLARE(apr_status_t) ap_parse_mutex(const char *arg, apr_pool_t *pool,
 
 typedef struct {
     apr_int32_t options;
-    int set;
-    int none;
-    int omit_pid;
+    unsigned int set :      1;
+    unsigned int none :     1;
+    unsigned int omit_pid : 1;
     apr_lockmech_e mech;
     const char *dir;
 } mutex_cfg_t;