a52f674
From 0a79ae6f36f4d93c7c9166d8ba541618567f8b1b Mon Sep 17 00:00:00 2001
d66047d
From: Lennart Poettering <lennart@poettering.net>
d66047d
Date: Tue, 26 Nov 2013 18:40:23 +0100
d66047d
Subject: [PATCH] journal: make table const
d66047d
d66047d
(cherry picked from commit b8e891e699e1336c5527f8203e4e8f67c9bbeb84)
d66047d
---
d66047d
 src/journal/journal-file.c | 2 +-
d66047d
 src/journal/journal-file.h | 8 ++++----
d66047d
 2 files changed, 5 insertions(+), 5 deletions(-)
d66047d
d66047d
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
d66047d
index d1b8433..d3bdaea 100644
d66047d
--- a/src/journal/journal-file.c
d66047d
+++ b/src/journal/journal-file.c
d66047d
@@ -401,7 +401,7 @@ static int journal_file_move_to(JournalFile *f, int context, bool keep_always, u
d66047d
 
d66047d
 static uint64_t minimum_header_size(Object *o) {
d66047d
 
d66047d
-        static uint64_t table[] = {
d66047d
+        static const uint64_t table[] = {
d66047d
                 [OBJECT_DATA] = sizeof(DataObject),
d66047d
                 [OBJECT_FIELD] = sizeof(FieldObject),
d66047d
                 [OBJECT_ENTRY] = sizeof(EntryObject),
d66047d
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
d66047d
index 5cc2c2d..50bdb67 100644
d66047d
--- a/src/journal/journal-file.h
d66047d
+++ b/src/journal/journal-file.h
d66047d
@@ -54,11 +54,11 @@ typedef struct JournalFile {
d66047d
 
d66047d
         int flags;
d66047d
         int prot;
d66047d
-        bool writable;
d66047d
-        bool compress;
d66047d
-        bool seal;
d66047d
+        bool writable:1;
d66047d
+        bool compress:1;
d66047d
+        bool seal:1;
d66047d
 
d66047d
-        bool tail_entry_monotonic_valid;
d66047d
+        bool tail_entry_monotonic_valid:1;
d66047d
 
d66047d
         direction_t last_direction;
d66047d