diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 11:18:46 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 11:19:00 +0100 |
commit | 6f47ad30250cf467065a19105013321ee4973694 (patch) | |
tree | dcb4747f732c9ff824c9bc3a6c3bf08dc7ef08ee /src | |
parent | 2792bd6fef4c2ded0ddc77376af77ffd4c46f06f (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/sd-journal.c | 2 |
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) { |