journal: make table const

This commit is contained in:
Lennart Poettering 2013-11-26 18:40:23 +01:00
parent a676e66535
commit b8e891e699
2 changed files with 5 additions and 5 deletions

View file

@ -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),

View file

@ -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;