[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.139,2.140
Tim Peters
tim_one@users.sourceforge.net
Wed, 28 Nov 2001 14:13:27 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv5668/python/Objects
Modified Files:
fileobject.c
Log Message:
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.
Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.139
retrieving revision 2.140
diff -C2 -d -r2.139 -r2.140
*** fileobject.c 2001/11/09 20:59:14 2.139
--- fileobject.c 2001/11/28 22:13:25 2.140
***************
*** 1635,1639 ****
int
! PyFile_WriteString(char *s, PyObject *f)
{
if (f == NULL) {
--- 1635,1639 ----
int
! PyFile_WriteString(const char *s, PyObject *f)
{
if (f == NULL) {