summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-28 22:13:25 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-28 22:13:25 (GMT)
commitc1bbcb87aa8b576c8934aed6555681a62c820c25 (patch)
treed040b6a5b5caaa5307dd62a45c5ba31632dbb674 /Objects
parent75cdad558472781162a83439f3e6edb61d4d40e6 (diff)
downloadcpython-c1bbcb87aa8b576c8934aed6555681a62c820c25.zip
cpython-c1bbcb87aa8b576c8934aed6555681a62c820c25.tar.gz
cpython-c1bbcb87aa8b576c8934aed6555681a62c820c25.tar.bz2
PyFile_WriteString(): change prototype so that the string arg is
const char* instead of char*. The change is conceptually correct, and indirectly fixes a compiler wng introduced when somebody else innocently passed a const char* to this function.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index de1a93c..a60d3ef 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -1634,7 +1634,7 @@ PyFile_WriteObject(PyObject *v, PyObject *f, int flags)
}
int
-PyFile_WriteString(char *s, PyObject *f)
+PyFile_WriteString(const char *s, PyObject *f)
{
if (f == NULL) {
/* Should be caused by a pre-existing error */