a52f674
From c914a2beb806b5a004935dfd3725f5d0fe87fe77 Mon Sep 17 00:00:00 2001
930e1b8
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
930e1b8
Date: Mon, 11 Nov 2013 19:53:59 -0500
930e1b8
Subject: [PATCH] systemd-python: fix booted() and add two functions to docs
930e1b8
930e1b8
For some reason sphinx doesn't want to show inherited C functions.
930e1b8
---
a52f674
 src/python-systemd/_daemon.c | 2 +-
a52f674
 1 file changed, 1 insertion(+), 1 deletion(-)
930e1b8
930e1b8
diff --git a/src/python-systemd/_daemon.c b/src/python-systemd/_daemon.c
930e1b8
index 6b84fb8..f0ab16f 100644
930e1b8
--- a/src/python-systemd/_daemon.c
930e1b8
+++ b/src/python-systemd/_daemon.c
930e1b8
@@ -51,7 +51,7 @@ static PyObject* booted(PyObject *self, PyObject *args) {
930e1b8
         assert(args == NULL);
930e1b8
 
930e1b8
         r = sd_booted();
930e1b8
-        if (set_error(r, NULL, NULL))
930e1b8
+        if (set_error(r, NULL, NULL) < 0)
930e1b8
                 return NULL;
930e1b8
 
930e1b8
         return PyBool_FromLong(r);