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:
@@ -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__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user