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 07:21:59 UTC

svn commit: r1882228 - /httpd/httpd/trunk/server/util_mutex.c

Author: jailletc36
Date: Sun Oct  4 07:21:59 2020
New Revision: 1882228

URL: http://svn.apache.org/viewvc?rev=1882228&view=rev
Log:
Save a few bytes of memory when registering Mutex

Modified:
    httpd/httpd/trunk/server/util_mutex.c

Modified: httpd/httpd/trunk/server/util_mutex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_mutex.c?rev=1882228&r1=1882227&r2=1882228&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_mutex.c (original)
+++ httpd/httpd/trunk/server/util_mutex.c Sun Oct  4 07:21:59 2020
@@ -128,9 +128,9 @@ AP_DECLARE(apr_status_t) ap_parse_mutex(
 
 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;