From 481f24d1f6ffb2535bce6531c2c67b7fdffdff56 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 8 Dec 2020 21:49:34 +0900 Subject: [PATCH] udev: drop meaningless size optimization These objects are not allocated multiple times simultaneously per single process. --- src/udev/udev-ctrl.c | 8 ++++---- src/udev/udev-event.h | 16 ++++++++-------- src/udev/udevd.c | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 48355aa50c..64051d0aa8 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -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; diff --git a/src/udev/udev-event.h b/src/udev/udev-event.h index 864782822c..a34b85176d 100644 --- a/src/udev/udev-event.h +++ b/src/udev/udev-event.h @@ -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); diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 19e4951a6e..e65916cb1c 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -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 {