diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-12-12 22:51:24 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-12-13 00:47:23 +0100 |
commit | d05089d86ef032b245c7f928e623b88c82998ab0 (patch) | |
tree | 96bcef531c7e8b74479ec233ea33990b258b67b0 /src/journal/sd-journal.c | |
parent | 2df65e7d964295f2763fae3b8bc3ade5d4e0fbe3 (diff) |
journal: consistently use OBJECT_<type> names instead of numbers
Note that numbers 0 and -1 are both replaced with OBJECT_UNUSED,
because they are treated the same everywhere (e.g. type_to_context()
translates them both to 0).
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 028060d348..be08a92b76 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -2588,10 +2588,10 @@ _public_ int sd_journal_enumerate_unique(sd_journal *j, const void **data, size_ continue; } - /* We do not use the type context here, but 0 instead, - * so that we can look at this data object at the same + /* We do not use OBJECT_DATA context here, but OBJECT_UNUSED + * instead, so that we can look at this data object at the same * time as one on another file */ - r = journal_file_move_to_object(j->unique_file, 0, j->unique_offset, &o); + r = journal_file_move_to_object(j->unique_file, OBJECT_UNUSED, j->unique_offset, &o); if (r < 0) return r; |