diff options
author | Christian Hesse <mail@eworm.de> | 2014-10-13 22:12:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-20 22:02:49 +0200 |
commit | 1cdf717550971ea4e3c637dc964822062645eaed (patch) | |
tree | 69a08ae9b37fa7293cbfa963c1d96ede476afea7 /src | |
parent | 2dd1ca3fd696dfeffadf35ad6847af4df84f51e4 (diff) |
sd-journal: consistently use ternary operator for all direction checks
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/sd-journal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 479444c8df..daa04ac4fa 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -849,10 +849,8 @@ static int next_beyond_location(sd_journal *j, JournalFile *f, direction_t direc int k; k = compare_with_location(f, c, &j->current_location); - if (direction == DIRECTION_DOWN) - found = k > 0; - else - found = k < 0; + + found = direction == DIRECTION_DOWN ? k > 0 : k < 0; } else found = true; |