1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s4:pyparam: Use C99 initializer for PyGetSetDef

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2018-12-13 11:10:40 +01:00 committed by Andreas Schneider
parent ee4795b9f1
commit d538319ebc

View File

@ -464,10 +464,16 @@ static PyObject *py_lp_ctx_config_file(PyObject *self, void *closure)
}
static PyGetSetDef py_lp_ctx_getset[] = {
{ discard_const_p(char, "default_service"), (getter)py_lp_ctx_default_service, NULL, NULL },
{ discard_const_p(char, "configfile"), (getter)py_lp_ctx_config_file, NULL,
discard_const_p(char, "Name of last config file that was loaded.") },
{ NULL }
{
.name = discard_const_p(char, "default_service"),
.get = (getter)py_lp_ctx_default_service,
},
{
.name = discard_const_p(char, "configfile"),
.get = (getter)py_lp_ctx_config_file,
.doc = discard_const_p(char, "Name of last config file that was loaded.")
},
{ .name = NULL }
};
static PyObject *py_lp_ctx_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)