summaryrefslogtreecommitdiff
path: root/src/python-systemd/_journal.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-15 18:10:51 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-19 21:50:43 -0400
commitab3a162c0194fd92884798488eeafdcc5c4d7d57 (patch)
tree8a2191b3059042fbec91259b1ed8e36766b156cb /src/python-systemd/_journal.c
parent2b01924cda5257531867119e11ee950741af2ff6 (diff)
systemd-python: small cleanups
- separate methods with two empty lines for clarity - avoid malloc(0) by specyfing private data size as -1 - add method name in error messages
Diffstat (limited to 'src/python-systemd/_journal.c')
-rw-r--r--src/python-systemd/_journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/_journal.c b/src/python-systemd/_journal.c
index ced52b2f52..2de0d4f91d 100644
--- a/src/python-systemd/_journal.c
+++ b/src/python-systemd/_journal.c
@@ -128,7 +128,7 @@ static struct PyModuleDef module = {
PyModuleDef_HEAD_INIT,
"_journal", /* name of module */
NULL, /* module documentation, may be NULL */
- 0, /* size of per-interpreter state of the module */
+ -1, /* size of per-interpreter state of the module */
methods
};