chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-python: fix error check in _Reader.wait()
[elogind.git]
/
src
/
python-systemd
/
_reader.c
diff --git
a/src/python-systemd/_reader.c
b/src/python-systemd/_reader.c
index d3d45cc0156e07810a9eca84c9d4afc19253d4be..7013fcfcef2f68934c0c9f335362e731d27a399d 100644
(file)
--- a/
src/python-systemd/_reader.c
+++ b/
src/python-systemd/_reader.c
@@
-507,9
+507,10
@@
static PyObject* Reader_wait(Reader *self, PyObject *args, PyObject *keywds)
return NULL;
Py_BEGIN_ALLOW_THREADS
return NULL;
Py_BEGIN_ALLOW_THREADS
- r = sd_journal_wait(self->j, timeout ==0 ? (uint64_t) -1 : timeout * 1E6);
+ r = sd_journal_wait(self->j,
+ timeout == 0 ? (uint64_t) -1 : timeout * 1E6);
Py_END_ALLOW_THREADS
Py_END_ALLOW_THREADS
- if (set_error(r, NULL, NULL))
+ if (set_error(r, NULL, NULL)
< 0
)
return NULL;
return long_FromLong(r);
return NULL;
return long_FromLong(r);