[systemd-commits] src/journal

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Fri Feb 22 02:19:39 PST 2013


 src/journal/sd-journal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f47ad30250cf467065a19105013321ee4973694
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Fri Feb 22 11:18:46 2013 +0100

    journal: sd_journal_get_cursor should return 0 on success
    
    Documentation states that 0 is correct, and all other
    similar functions return 0 on success.
    
    Pointed-out-by: Steven Hiscocks <steven-systemd at hiscocks.me.uk>

diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 095fbb2..8904560 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -958,7 +958,7 @@ _public_ int sd_journal_get_cursor(sd_journal *j, char **cursor) {
                      (unsigned long long) le64toh(o->entry.xor_hash)) < 0)
                 return -ENOMEM;
 
-        return 1;
+        return 0;
 }
 
 _public_ int sd_journal_seek_cursor(sd_journal *j, const char *cursor) {



More information about the systemd-commits mailing list