libsystemd-journal: return 0 on success in get_data()

The man page says so. Right now 0 would be returned if the data was encrypted,
1 otherwise.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-03-07 00:45:56 -05:00
parent f2e82cd5ad
commit 99613ec5d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1103,7 +1103,7 @@ int main(int argc, char *argv[]) {
int flags;
if (need_seek) {
if(!arg_reverse)
if (!arg_reverse)
r = sd_journal_next(j);
else
r = sd_journal_previous(j);
+1 -1
View File
@@ -1868,7 +1868,7 @@ _public_ int sd_journal_get_data(sd_journal *j, const char *field, const void **
*data = o->data.payload;
*size = t;
return 1;
return 0;
}
r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o);