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 setting of exception codes
[elogind.git]
/
src
/
python-systemd
/
_daemon.c
diff --git
a/src/python-systemd/_daemon.c
b/src/python-systemd/_daemon.c
index f0ab16f659e2367f87057da2886ab1860a51084a..c6db69fe260443f623a9dae3b82444fa9836a75b 100644
(file)
--- a/
src/python-systemd/_daemon.c
+++ b/
src/python-systemd/_daemon.c
@@
-88,7
+88,7
@@
static PyObject* notify(PyObject *self, PyObject *args, PyObject *keywds) {
#endif
r = sd_notify(unset, msg);
#endif
r = sd_notify(unset, msg);
- if (set_error(r, NULL, NULL))
+ if (set_error(r, NULL, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);
@@
-123,7
+123,7
@@
static PyObject* listen_fds(PyObject *self, PyObject *args, PyObject *keywds) {
#endif
r = sd_listen_fds(unset);
#endif
r = sd_listen_fds(unset);
- 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);
@@
-151,7
+151,7
@@
static PyObject* is_fifo(PyObject *self, PyObject *args) {
#endif
r = sd_is_fifo(fd, path);
#endif
r = sd_is_fifo(fd, path);
- if (set_error(r, path, NULL))
+ if (set_error(r, path, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);
@@
-179,7
+179,7
@@
static PyObject* is_mq(PyObject *self, PyObject *args) {
#endif
r = sd_is_mq(fd, path);
#endif
r = sd_is_mq(fd, path);
- if (set_error(r, path, NULL))
+ if (set_error(r, path, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);
@@
-203,7
+203,7
@@
static PyObject* is_socket(PyObject *self, PyObject *args) {
return NULL;
r = sd_is_socket(fd, family, type, listening);
return NULL;
r = sd_is_socket(fd, family, type, listening);
- if (set_error(r, NULL, NULL))
+ if (set_error(r, NULL, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);
@@
-230,7
+230,7
@@
static PyObject* is_socket_inet(PyObject *self, PyObject *args) {
}
r = sd_is_socket_inet(fd, family, type, listening, (uint16_t) port);
}
r = sd_is_socket_inet(fd, family, type, listening, (uint16_t) port);
- if (set_error(r, NULL, NULL))
+ if (set_error(r, NULL, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);
@@
-265,7
+265,7
@@
static PyObject* is_socket_unix(PyObject *self, PyObject *args) {
#endif
r = sd_is_socket_unix(fd, type, listening, path, length);
#endif
r = sd_is_socket_unix(fd, type, listening, path, length);
- if (set_error(r, path, NULL))
+ if (set_error(r, path, NULL)
< 0
)
return NULL;
return PyBool_FromLong(r);
return NULL;
return PyBool_FromLong(r);