summaryrefslogtreecommitdiff
path: root/systemd/id128.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>2015-07-05 14:19:18 -0400
commit9d63a706d7b76f53ff9f72336c2dce9ee91884c6 (patch)
tree409c0c5e8ec6b6510f0c3388093e014e3f134a50 /systemd/id128.c
parent69669a975b593bfd177420b4647e8a784b167de1 (diff)
downloadpython-systemd-9d63a706d7b76f53ff9f72336c2dce9ee91884c6.tar.gz
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 'systemd/id128.c')
-rw-r--r--systemd/id128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/id128.c b/systemd/id128.c
index a6711a5..865cc3c 100644
--- a/systemd/id128.c
+++ b/systemd/id128.c
@@ -134,7 +134,7 @@ static struct PyModuleDef module = {
PyModuleDef_HEAD_INIT,
"id128", /* name of module */
module__doc__, /* module documentation, may be NULL */
- 0, /* size of per-interpreter state of the module */
+ -1, /* size of per-interpreter state of the module */
methods
};