chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: add output mode that just prints simple messages without any decorations
[elogind.git]
/
src
/
journal
/
journal-file.c
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 6ba3d8dca37797cd159835edb4a542f8de87c2d2..419e15e46fa583c36c808720c2d3e1281e038e10 100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-640,8
+640,7
@@
int journal_file_find_data_object_with_hash(
if (o->object.flags & OBJECT_COMPRESSED) {
#ifdef HAVE_XZ
if (o->object.flags & OBJECT_COMPRESSED) {
#ifdef HAVE_XZ
- uint64_t l;
- size_t rsize;
+ uint64_t l, rsize;
l = le64toh(o->object.size);
if (l <= offsetof(Object, data.payload))
l = le64toh(o->object.size);
if (l <= offsetof(Object, data.payload))
@@
-652,7
+651,7
@@
int journal_file_find_data_object_with_hash(
if (!uncompress_blob(o->data.payload, l, &f->compress_buffer, &f->compress_buffer_size, &rsize))
return -EBADMSG;
if (!uncompress_blob(o->data.payload, l, &f->compress_buffer, &f->compress_buffer_size, &rsize))
return -EBADMSG;
- if (
(uint64_t)
rsize == size &&
+ if (rsize == size &&
memcmp(f->compress_buffer, data, size) == 0) {
if (ret)
memcmp(f->compress_buffer, data, size) == 0) {
if (ret)