chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a35ec
)
journal: only use uint8_t for state
author
Frederic Crozat
<fcrozat@suse.com>
Thu, 15 Mar 2012 16:50:03 +0000
(17:50 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 15 Mar 2012 19:53:03 +0000
(20:53 +0100)
src/journal/journal-file.c
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 4e082f30cfc9474152c993c186c554c47b036e0e..6460d70c4aef18c28223070150056bdbb0c45295 100644
(file)
--- 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) {
- uint
32
_t state;
+ uint
8
_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);