summaryrefslogtreecommitdiff
path: root/systemd/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/login.c')
-rw-r--r--systemd/login.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/systemd/login.c b/systemd/login.c
index ff74dc7..dc9abbe 100644
--- a/systemd/login.c
+++ b/systemd/login.c
@@ -38,7 +38,7 @@ static PyObject* name(PyObject *self, PyObject *args) { \
int r; \
PyObject *ans; \
\
- assert(args == NULL); \
+ assert(!args); \
\
r = sd_get_##name(&list); \
if (r < 0) { \
@@ -73,7 +73,7 @@ static PyObject* uids(PyObject *self, PyObject *args) {
int r;
PyObject *ans;
- assert(args == NULL);
+ assert(!args);
r = sd_get_uids(&list);
if (r < 0) {
@@ -323,7 +323,7 @@ PyMODINIT_FUNC initlogin(void) {
return;
m = Py_InitModule3("login", methods, module__doc__);
- if (m == NULL)
+ if (!m)
return;
PyModule_AddStringConstant(m, "__version__", PACKAGE_VERSION);
@@ -351,7 +351,7 @@ PyMODINIT_FUNC PyInit_login(void) {
return NULL;
m = PyModule_Create(&module);
- if (m == NULL)
+ if (!m)
return NULL;
if (PyModule_AddStringConstant(m, "__version__", PACKAGE_VERSION)) {