s4:lib: Use C99 initializer for PyGetSetDef in pymessaging
[sfrench/samba-autobuild/.git] / source4 / lib / messaging / pymessaging.c
index 6e64bb9a0600255199dd58a3a3abd2dcdd2c71e5..c43caf54b481db486ddc797df39f113fb966ed67 100644 (file)
@@ -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 },
 };