From: Lennart Poettering Date: Fri, 22 Oct 2021 13:51:49 +0000 (+0200) Subject: homework: use bit fields where we deal with lots of separate boolean flags X-Git-Tag: v250-rc1~447^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=baa41cee77bdf6e441e2a52a7c01c369854bc43a;p=thirdparty%2Fsystemd.git homework: use bit fields where we deal with lots of separate boolean flags No actual code changes, just making a structure a bit shorter. --- diff --git a/src/home/homework.h b/src/home/homework.h index df5356454be..7bd31b5cead 100644 --- a/src/home/homework.h +++ b/src/home/homework.h @@ -28,12 +28,12 @@ typedef struct HomeSetup { void *volume_key; size_t volume_key_size; - bool undo_dm; - bool undo_mount; - bool do_offline_fitrim; - bool do_offline_fallocate; - bool do_mark_clean; - bool do_drop_caches; + bool undo_dm:1; + bool undo_mount:1; /* Whether to unmount /run/systemd/user-home-mount */ + bool do_offline_fitrim:1; + bool do_offline_fallocate:1; + bool do_mark_clean:1; + bool do_drop_caches:1; uint64_t partition_offset; uint64_t partition_size;