X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpython-systemd%2F_reader.c;h=3a561269a781c30e36c25d49e03d10a46757d948;hb=dab5bf859900c0abdbf78c584e4aed42a19768cd;hp=9a19a10219a0c1d93c7494d2538d00d51ffbda08;hpb=b65f24238b0627143916a9c7f8315483a9666676;p=elogind.git diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c index 9a19a1021..3a561269a 100644 --- a/src/python-systemd/_reader.c +++ b/src/python-systemd/_reader.c @@ -25,7 +25,7 @@ #include #include -#include +#include "systemd/sd-journal.h" #include "pyutil.h" #include "macro.h" @@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__, "Part of the context manager protocol.\n" "Closes the journal.\n"); static PyObject* Reader___exit__(Reader *self, PyObject *args) { - return Reader_close(self, args); + return Reader_close(self, NULL); } PyDoc_STRVAR(Reader_next__doc__,