From: Lennart Poettering Date: Mon, 26 Feb 2018 17:34:13 +0000 (+0100) Subject: logind: let's pack a few struct fields we can pack X-Git-Tag: v238~51^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0410444446c84a759a8f2d0917710849fc91384c;p=thirdparty%2Fsystemd.git logind: let's pack a few struct fields we can pack --- diff --git a/src/login/logind-session-device.h b/src/login/logind-session-device.h index a1cf17af926..a9ead7bdcaf 100644 --- a/src/login/logind-session-device.h +++ b/src/login/logind-session-device.h @@ -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); };