[systemd-commits] src/journal
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Mar 15 12:53:17 PDT 2012
src/journal/journal-file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ccdbaf911196e2fc80eaa914bf22e01035ee1f3f
Author: Frederic Crozat <fcrozat at suse.com>
Date: Thu Mar 15 17:50:03 2012 +0100
journal: only use uint8_t for state
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 4e082f3..6460d70 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -162,7 +162,7 @@ static int journal_file_verify_header(JournalFile *f) {
return -ENODATA;
if (f->writable) {
- uint32_t state;
+ uint8_t state;
sd_id128_t machine_id;
int r;
@@ -1866,7 +1866,7 @@ int journal_file_rotate(JournalFile **f) {
if (r < 0)
return -errno;
- old_file->header->state = le32toh(STATE_ARCHIVED);
+ old_file->header->state = STATE_ARCHIVED;
r = journal_file_open(old_file->path, old_file->flags, old_file->mode, old_file, &new_file);
journal_file_close(old_file);
More information about the systemd-commits
mailing list