From: Lennart Poettering Date: Tue, 26 Nov 2013 17:40:23 +0000 (+0100) Subject: journal: make table const X-Git-Tag: v209~1280 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b8e891e699e1336c5527f8203e4e8f67c9bbeb84 journal: make table const --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index d606adaf8..481c2423c 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -401,7 +401,7 @@ static int journal_file_move_to(JournalFile *f, int context, bool keep_always, u static uint64_t minimum_header_size(Object *o) { - static uint64_t table[] = { + static const uint64_t table[] = { [OBJECT_DATA] = sizeof(DataObject), [OBJECT_FIELD] = sizeof(FieldObject), [OBJECT_ENTRY] = sizeof(EntryObject), diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index 773ece07e..21b0821b6 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -54,11 +54,11 @@ typedef struct JournalFile { int flags; int prot; - bool writable; - bool compress; - bool seal; + bool writable:1; + bool compress:1; + bool seal:1; - bool tail_entry_monotonic_valid; + bool tail_entry_monotonic_valid:1; direction_t last_direction;