From c1bbcb87aa8b576c8934aed6555681a62c820c25 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 28 Nov 2001 22:13:25 +0000 Subject: 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. --- Objects/fileobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects') diff --git a/Objects/fileobject.c b/Objects/fileobject.c index de1a93c44e..a60d3ef44a 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 */ -- cgit v1.2.1