summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 11:18:46 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 11:19:00 +0100
commit6f47ad30250cf467065a19105013321ee4973694 (patch)
treedcb4747f732c9ff824c9bc3a6c3bf08dc7ef08ee
parent2792bd6fef4c2ded0ddc77376af77ffd4c46f06f (diff)
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@hiscocks.me.uk>
-rw-r--r--src/journal/sd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 095fbb249c..8904560094 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) {