journal: make table const
This commit is contained in:
parent
a676e66535
commit
b8e891e699
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue