mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4/messaging/py: Remove incorrect function names in messaging.Messaging()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a57b1cc05d
commit
f320b73ba6
@ -94,7 +94,7 @@ static PyObject *py_imessaging_connect(PyTypeObject *self, PyObject *args, PyObj
|
|||||||
imessaging_Object *ret;
|
imessaging_Object *ret;
|
||||||
struct loadparm_context *lp_ctx;
|
struct loadparm_context *lp_ctx;
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OO:connect",
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OO",
|
||||||
discard_const_p(char *, kwnames), &own_id, &py_lp_ctx)) {
|
discard_const_p(char *, kwnames), &own_id, &py_lp_ctx)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ static PyObject *py_imessaging_connect(PyTypeObject *self, PyObject *args, PyObj
|
|||||||
|
|
||||||
lp_ctx = lpcfg_from_py_object(ret->mem_ctx, py_lp_ctx);
|
lp_ctx = lpcfg_from_py_object(ret->mem_ctx, py_lp_ctx);
|
||||||
if (lp_ctx == NULL) {
|
if (lp_ctx == NULL) {
|
||||||
PyErr_SetString(PyExc_RuntimeError, "imessaging_connect unable to interpret loadparm_context");
|
PyErr_SetString(PyExc_RuntimeError, "unable to interpret loadparm_context");
|
||||||
talloc_free(ret->mem_ctx);
|
talloc_free(ret->mem_ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ static PyObject *py_imessaging_connect(PyTypeObject *self, PyObject *args, PyObj
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret->msg_ctx == NULL) {
|
if (ret->msg_ctx == NULL) {
|
||||||
PyErr_SetString(PyExc_RuntimeError, "imessaging_connect unable to create a messaging context");
|
PyErr_SetString(PyExc_RuntimeError, "unable to create a messaging context");
|
||||||
talloc_free(ret->mem_ctx);
|
talloc_free(ret->mem_ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user