diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aee8394a251c6490851a86230f74a7029abb796e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.text +CMakeLists.txt.user* +*.autosave \ No newline at end of file diff --git a/include/wrapping_dap_chain_net_node_cli.h b/include/wrapping_dap_chain_net_node_cli.h index 88bffd98fe9e93311aa6bf5ced68284970ae6104..9dd1d53fb3e72f8d965172949da707bdf4f7b5a5 100644 --- a/include/wrapping_dap_chain_net_node_cli.h +++ b/include/wrapping_dap_chain_net_node_cli.h @@ -23,7 +23,7 @@ void dap_chain_node_cli_delete_py(void); PyObject *DapChainNodeCliObject_new(PyTypeObject *type_object, PyObject *args, PyObject *kwds); -PyObject *dap_chain_node_cli_cmd_item_create_py(PyObject *self, PyObject *args); +PyObject *dap_chain_node_cli_cmd_item_create_py(PyObject *a_self, PyObject *a_args); PyObject *dap_chain_node_cli_set_reply_text_py(PyObject *self, PyObject *args); PyObject *dap_chain_node_addr_get_by_alias_py(PyObject *self, PyObject *args); diff --git a/src/wrapping_dap_chain_net_node_cli.c b/src/wrapping_dap_chain_net_node_cli.c index ab3d31f502c5c24819fd8d9b678c6292027ed2c1..80e0c61b22fa9d0ef84c2cf89eb21a2240faabe8 100644 --- a/src/wrapping_dap_chain_net_node_cli.c +++ b/src/wrapping_dap_chain_net_node_cli.c @@ -31,10 +31,11 @@ PyObject *DapChainNodeCliObject_new(PyTypeObject *type_object, PyObject *args, P return (PyObject *)obj; } -PyObject *dap_chain_node_cli_cmd_item_create_py(PyObject *self, PyObject *args){ +PyObject *dap_chain_node_cli_cmd_item_create_py(PyObject *a_self, PyObject *a_args){ + (void) a_self; const char *name, *doc, *doc_ex; PyObject *obj_cmdfunc; - if (!PyArg_ParseTuple(args, "s|O:set_callback|s|s", &name, &obj_cmdfunc, &doc, &doc_ex)){ + if (!PyArg_ParseTuple(a_args, "s|O:set_callback|s|s", &name, &obj_cmdfunc, &doc, &doc_ex)){ return NULL; } else { if (!PyCallable_Check(obj_cmdfunc)){