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