git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7017f24
)
s4:lib: Use C99 initializer for PyGetSetDef in pymessaging
author
Andreas Schneider
<asn@samba.org>
Thu, 13 Dec 2018 11:13:04 +0000
(12:13 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:20 +0000
(10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/lib/messaging/pymessaging.c
patch
|
blob
|
history
diff --git
a/source4/lib/messaging/pymessaging.c
b/source4/lib/messaging/pymessaging.c
index 6e64bb9a0600255199dd58a3a3abd2dcdd2c71e5..c43caf54b481db486ddc797df39f113fb966ed67 100644
(file)
--- a/
source4/lib/messaging/pymessaging.c
+++ b/
source4/lib/messaging/pymessaging.c
@@
-486,9
+486,12
@@
static PyObject *py_imessaging_server_id(PyObject *obj, void *closure)
}
static PyGetSetDef py_imessaging_getset[] = {
- { discard_const_p(char, "server_id"), py_imessaging_server_id, NULL,
- discard_const_p(char, "local server id") },
- { NULL },
+ {
+ .name = discard_const_p(char, "server_id"),
+ .get = py_imessaging_server_id,
+ .doc = discard_const_p(char, "local server id")
+ },
+ { .name = NULL },
};