summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h2
-rw-r--r--Include/stringobject.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 21a4833..51d8e44 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -39,7 +39,7 @@ PERFORMANCE OF THIS SOFTWARE.
void PyErr_SetNone Py_PROTO((PyObject *));
void PyErr_SetObject Py_PROTO((PyObject *, PyObject *));
-void PyErr_SetString Py_PROTO((PyObject *, char *));
+void PyErr_SetString Py_PROTO((PyObject *, const char *));
PyObject *PyErr_Occurred Py_PROTO((void));
void PyErr_Clear Py_PROTO((void));
void PyErr_Fetch Py_PROTO((PyObject **, PyObject **, PyObject **));
diff --git a/Include/stringobject.h b/Include/stringobject.h
index 06e572d..2c3e568 100644
--- a/Include/stringobject.h
+++ b/Include/stringobject.h
@@ -69,8 +69,8 @@ extern DL_IMPORT(PyTypeObject) PyString_Type;
#define PyString_Check(op) ((op)->ob_type == &PyString_Type)
-extern PyObject *PyString_FromStringAndSize Py_PROTO((char *, int));
-extern PyObject *PyString_FromString Py_PROTO((char *));
+extern PyObject *PyString_FromStringAndSize Py_PROTO((const char *, int));
+extern PyObject *PyString_FromString Py_PROTO((const char *));
extern int PyString_Size Py_PROTO((PyObject *));
extern char *PyString_AsString Py_PROTO((PyObject *));
extern void PyString_Concat Py_PROTO((PyObject **, PyObject *));