1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00

python: Remove const from PyList_AsStringList()

The returned strings are not owned by python, so need not be const.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett
2023-07-21 14:32:46 +12:00
parent fd81759e2e
commit 5afd206d1d
3 changed files with 8 additions and 8 deletions

View File

@@ -26,8 +26,8 @@ bool py_update_path(void);
/* discard signature of 'func' in favour of 'target_sig' */
#define PY_DISCARD_FUNC_SIG(target_sig, func) (target_sig)(void(*)(void))func
const char **PyList_AsStringList(TALLOC_CTX *mem_ctx, PyObject *list,
const char *paramname);
char **PyList_AsStringList(TALLOC_CTX *mem_ctx, PyObject *list,
const char *paramname);
#endif /* __SAMBA_PYTHON_MODULES_H__ */