chiark / gitweb /
journal: simplify set_location()
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 16 Dec 2014 21:38:09 +0000 (22:38 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 18 Dec 2014 11:20:25 +0000 (12:20 +0100)
commit1eb6332d557e6e510a9ce723296cb3b658d7e9a4
tree6134c897be6df13122b4fd1da0c0ad17b284beed
parent6573ef05a3cbe15949acfbbf1ad03726068907bd
journal: simplify set_location()

set_location() is called from real_journal_next() when a winning entry
has been picked from among the candidates in journal files.

The location type is always set to LOCATION_DISCRETE. No need to pass
it as a parameter.
The per-JournalFile location information is already updated at this
point. No need for having the direction and offset here.
src/journal/sd-journal.c