mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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:
parent
f2e82cd5ad
commit
99613ec5d7
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user