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.
This commit is contained in:
Tim Peters 2001-11-28 22:13:25 +00:00
parent 75cdad5584
commit c1bbcb87aa
2 changed files with 2 additions and 2 deletions

View file

@ -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 */