Skip to content

Commit 481f24d

Browse files
committed
udev: drop meaningless size optimization
These objects are not allocated multiple times simultaneously per single process.
1 parent 19d4380 commit 481f24d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/udev/udev-ctrl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ struct udev_ctrl {
4444
int sock_connect;
4545
union sockaddr_union saddr;
4646
socklen_t addrlen;
47-
bool bound:1;
48-
bool cleanup_socket:1;
49-
bool connected:1;
50-
bool maybe_disconnected:1;
47+
bool bound;
48+
bool cleanup_socket;
49+
bool connected;
50+
bool maybe_disconnected;
5151
sd_event *event;
5252
sd_event_source *event_source;
5353
sd_event_source *event_source_connect;

src/udev/udev-event.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ typedef struct UdevEvent {
3434
unsigned builtin_run;
3535
unsigned builtin_ret;
3636
UdevRuleEscapeType esc:8;
37-
bool inotify_watch:1;
38-
bool inotify_watch_final:1;
39-
bool group_final:1;
40-
bool owner_final:1;
41-
bool mode_final:1;
42-
bool name_final:1;
43-
bool devlink_final:1;
44-
bool run_final:1;
37+
bool inotify_watch;
38+
bool inotify_watch_final;
39+
bool group_final;
40+
bool owner_final;
41+
bool mode_final;
42+
bool name_final;
43+
bool devlink_final;
44+
bool run_final;
4545
} UdevEvent;
4646

4747
UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl);

src/udev/udevd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ typedef struct Manager {
100100

101101
usec_t last_usec;
102102

103-
bool stop_exec_queue:1;
104-
bool exit:1;
103+
bool stop_exec_queue;
104+
bool exit;
105105
} Manager;
106106

107107
enum event_state {

0 commit comments

Comments
 (0)