chiark / gitweb /
journal: sd_journal_get_cursor should return 0 on success
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2013 10:18:46 +0000 (11:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Feb 2013 10:19:00 +0000 (11:19 +0100)
Documentation states that 0 is correct, and all other
similar functions return 0 on success.

Pointed-out-by: Steven Hiscocks <steven-systemd@hiscocks.me.uk>
src/journal/sd-journal.c

index 095fbb249c5ac65c0a6469862f898f3763ac9f8b..89045600942d8f6af9b9d943e0d54f7a0eb7599d 100644 (file)
@@ -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) {