summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-25 00:32:45 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-25 00:32:45 (GMT)
commitf308132cc29eea9b7fe899deb575d29d607a48f4 (patch)
treede9ecd7856b197aaee7d47d1f321fc545ecc56c1 /Python
parentfa06e5f00f3e5f54ad97fbc93a3e9d199dc01fe8 (diff)
downloadcpython-f308132cc29eea9b7fe899deb575d29d607a48f4.zip
cpython-f308132cc29eea9b7fe899deb575d29d607a48f4.tar.gz
cpython-f308132cc29eea9b7fe899deb575d29d607a48f4.tar.bz2
Add const to input string parameters
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c12
1 files changed, 6 insertions, 6 deletions
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 @@ extern const char *PyWin_DLLVersionString;
#endif
PyObject *
-PySys_GetObject(char *name)
+PySys_GetObject(const char *name)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *sd = tstate->interp->sysdict;
@@ -56,7 +56,7 @@ PySys_GetObject(char *name)
}
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 @@ PySys_ResetWarnOptions(void)
}
void
-PySys_AddWarnOption(char *s)
+PySys_AddWarnOption(const char *s)
{
PyObject *str;
@@ -1128,10 +1128,10 @@ _PySys_Init(void)
}
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 @@ makepathobject(char *path, int delim)
}
void
-PySys_SetPath(char *path)
+PySys_SetPath(const char *path)
{
PyObject *v;
if ((v = makepathobject(path, DELIM)) == NULL)