s4:librpc: Use C99 initializer for PyGetSetDef in py_auth
authorAndreas Schneider <asn@samba.org>
Thu, 13 Dec 2018 10:40:09 +0000 (11:40 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 17 Jan 2019 10:35:12 +0000 (11:35 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/librpc/ndr/py_auth.c

index 95c9a30321fa82eb143ffbde6a43323b746765a0..b534e79b63196758c9eb65b9947de25b1474e80f 100644 (file)
@@ -58,8 +58,12 @@ static int py_auth_session_set_credentials(PyObject *self, PyObject *value, void
 }
 
 static PyGetSetDef py_auth_session_extra_getset[] = {
-       { discard_const_p(char, "credentials"), (getter)py_auth_session_get_credentials, (setter)py_auth_session_set_credentials, NULL },
-       { NULL }
+       {
+               .name = discard_const_p(char, "credentials"),
+               .get  = (getter)py_auth_session_get_credentials,
+               .set  = (setter)py_auth_session_set_credentials,
+       },
+       { .name = NULL },
 };
 
 static void py_auth_session_info_patch(PyTypeObject *type)