s3:param: Remove unnecessary use of discard_const_p()
[samba.git] / source3 / param / pyparam_util.c
index bfd8d05a2926f24fe305ce6f39fee97916927f5c..293f9c27ff9ac99587f644be5653c6e10155a07e 100644 (file)
@@ -25,7 +25,7 @@
 #include "param/s3_param.h"
 #include <pytalloc.h>
 
-#define PyErr_FromString(str) Py_BuildValue("(s)", discard_const_p(char, str))
+#define PyErr_FromString(str) Py_BuildValue("(s)", (str))
 #define PyLoadparmContext_AsLoadparmContext(obj) pytalloc_get_type(obj, struct loadparm_context)
 
 _PUBLIC_ struct loadparm_context *lpcfg_from_py_object(TALLOC_CTX *mem_ctx, PyObject *py_obj)