Skip to content

Commit

Permalink
Pass NULL for unnecessary timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mullins committed Jan 3, 2021
1 parent 9bb147c commit d6b3af9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions systemd/_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,13 +890,13 @@ PyDoc_STRVAR(Reader_get_start__doc__,
"Wraps sd_journal_get_cutoff_realtime_usec().\n"
"See :manpage:`sd_journal_get_cutoff_realtime_usec(3)`.");
static PyObject* Reader_get_start(Reader *self, PyObject *args) {
uint64_t start, end;
uint64_t start;
int r;

assert(self);
assert(!args);

r = sd_journal_get_cutoff_realtime_usec(self->j, &start, &end);
r = sd_journal_get_cutoff_realtime_usec(self->j, &start, NULL);
if (set_error(r, NULL, NULL) < 0)
return NULL;

Expand All @@ -911,13 +911,13 @@ PyDoc_STRVAR(Reader_get_end__doc__,
"Wraps sd_journal_get_cutoff_realtime_usec().\n"
"See :manpage:`sd_journal_get_cutoff_realtime_usec(3)`.");
static PyObject* Reader_get_end(Reader *self, PyObject *args) {
uint64_t start, end;
uint64_t end;
int r;

assert(self);
assert(!args);

r = sd_journal_get_cutoff_realtime_usec(self->j, &start, &end);
r = sd_journal_get_cutoff_realtime_usec(self->j, NULL, &end);
if (set_error(r, NULL, NULL) < 0)
return NULL;

Expand Down

0 comments on commit d6b3af9

Please sign in to comment.