Add const to input string parameters
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 7b32f60..4f9313a 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -46,7 +46,7 @@
#endif
PyObject *
-PySys_GetObject(char *name)
+PySys_GetObject(const char *name)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *sd = tstate->interp->sysdict;
@@ -56,7 +56,7 @@
}
int
-PySys_SetObject(char *name, PyObject *v)
+PySys_SetObject(const char *name, PyObject *v)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *sd = tstate->interp->sysdict;
@@ -819,7 +819,7 @@
}
void
-PySys_AddWarnOption(char *s)
+PySys_AddWarnOption(const char *s)
{
PyObject *str;
@@ -1128,10 +1128,10 @@
}
static PyObject *
-makepathobject(char *path, int delim)
+makepathobject(const char *path, int delim)
{
int i, n;
- char *p;
+ const char *p;
PyObject *v, *w;
n = 1;
@@ -1161,7 +1161,7 @@
}
void
-PySys_SetPath(char *path)
+PySys_SetPath(const char *path)
{
PyObject *v;
if ((v = makepathobject(path, DELIM)) == NULL)