[systemd-commits] 2 commits - TODO src/journal

Lennart Poettering lennart at kemper.freedesktop.org
Mon Oct 20 13:03:41 PDT 2014


 TODO                     |    2 ++
 src/journal/sd-journal.c |    6 ++----
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6dab5bb18151c80fc39bd51f03dcff40b920de3e
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Oct 20 22:03:36 2014 +0200

    update TODO

diff --git a/TODO b/TODO
index 15223fb..8e66e2d 100644
--- a/TODO
+++ b/TODO
@@ -41,6 +41,8 @@ External:
 
 Features:
 
+* maybe provide an API to allow migration of foreign PIDs into existing scopes.
+
 * kdbus: maybe rename "connection name" concept to something that doesn't reuse the word "name"?
 
 * PID 1 doesn't apply nspawns devices cgroup policy

commit 1cdf717550971ea4e3c637dc964822062645eaed
Author: Christian Hesse <mail at eworm.de>
Date:   Mon Oct 13 22:12:33 2014 +0200

    sd-journal: consistently use ternary operator for all direction checks

diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 479444c..daa04ac 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;
 



More information about the systemd-commits mailing list