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:
f534928
)
journal: next_with_matches() now does not need a mapped object as input
author
Michal Schmidt
<mschmidt@redhat.com>
Wed, 17 Dec 2014 14:46:30 +0000
(15:46 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Thu, 18 Dec 2014 13:44:34 +0000
(14:44 +0100)
Now that journal_file_next_entry() does not need a pointer to the
current object, next_with_matches() does not need it either.
src/journal/sd-journal.c
patch
|
blob
|
history
diff --git
a/src/journal/sd-journal.c
b/src/journal/sd-journal.c
index bcd39be35e972c4ace7a4bdc568ee6189a01c18e..285e5e3fb2dc4e2a2e8e7c1193609c89b9a4b977 100644
(file)
--- a/
src/journal/sd-journal.c
+++ b/
src/journal/sd-journal.c
@@
-748,10
+748,6
@@
static int next_beyond_location(sd_journal *j, JournalFile *f, direction_t direc
cp = f->current_offset;
- r = journal_file_move_to_object(f, OBJECT_ENTRY, cp, &c);
- if (r < 0)
- return r;
-
r = next_with_matches(j, f, direction, &c, &cp);
if (r <= 0)
return r;