]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: drop meaningless size optimization
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Dec 2020 12:49:34 +0000 (21:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Dec 2020 03:18:30 +0000 (12:18 +0900)
These objects are not allocated multiple times simultaneously per
single process.

src/udev/udev-ctrl.c
src/udev/udev-event.h
src/udev/udevd.c

index 48355aa50c865d15a6d1d6a70137fe95269bbace..64051d0aa8eda1fe829ba57ed950f8a8cf398024 100644 (file)
@@ -44,10 +44,10 @@ struct udev_ctrl {
         int sock_connect;
         union sockaddr_union saddr;
         socklen_t addrlen;
-        bool bound:1;
-        bool cleanup_socket:1;
-        bool connected:1;
-        bool maybe_disconnected:1;
+        bool bound;
+        bool cleanup_socket;
+        bool connected;
+        bool maybe_disconnected;
         sd_event *event;
         sd_event_source *event_source;
         sd_event_source *event_source_connect;
index 864782822cd9671a05f79eb4a0e2b8abc38bbdd7..a34b85176d8b35c0c56f1390f10ca0348a2d7673 100644 (file)
@@ -34,14 +34,14 @@ typedef struct UdevEvent {
         unsigned builtin_run;
         unsigned builtin_ret;
         UdevRuleEscapeType esc:8;
-        bool inotify_watch:1;
-        bool inotify_watch_final:1;
-        bool group_final:1;
-        bool owner_final:1;
-        bool mode_final:1;
-        bool name_final:1;
-        bool devlink_final:1;
-        bool run_final:1;
+        bool inotify_watch;
+        bool inotify_watch_final;
+        bool group_final;
+        bool owner_final;
+        bool mode_final;
+        bool name_final;
+        bool devlink_final;
+        bool run_final;
 } UdevEvent;
 
 UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl);
index 19e4951a6e4f6011b0363d40e451e48dd2e03511..e65916cb1c0e24ba058d88372dbbcb632922b4c0 100644 (file)
@@ -100,8 +100,8 @@ typedef struct Manager {
 
         usec_t last_usec;
 
-        bool stop_exec_queue:1;
-        bool exit:1;
+        bool stop_exec_queue;
+        bool exit;
 } Manager;
 
 enum event_state {