chiark / gitweb /
logind: let's pack a few struct fields we can pack
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Feb 2018 17:34:13 +0000 (18:34 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:06 +0000 (07:59 +0200)
src/login/logind-session-device.h

index a1cf17af926303f95749bfa1881e145c2316a8c1..a9ead7bdcafd7c83194bf0225344e38f4ee37b8a 100644 (file)
@@ -39,9 +39,9 @@ struct SessionDevice {
         dev_t dev;
         char *node;
         int fd;
-        bool active;
-        DeviceType type;
-        bool pushed_fd;
+        DeviceType type:3;
+        bool active:1;
+        bool pushed_fd:1;
 
         LIST_FIELDS(struct SessionDevice, sd_by_device);
 };