From a826f32054710f7dc602573f99c6c87a725adbba Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 2 Apr 2009 03:41:46 +0000 Subject: Merged revisions 71031 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines PyImport_AppendInittab() took a char * as a first argument even though that string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652. ........ --- Include/import.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/import.h') diff --git a/Include/import.h b/Include/import.h index e950d4bdbd..65657b4d2a 100644 --- a/Include/import.h +++ b/Include/import.h @@ -43,7 +43,7 @@ struct _inittab { PyAPI_DATA(PyTypeObject) PyNullImporter_Type; PyAPI_DATA(struct _inittab *) PyImport_Inittab; -PyAPI_FUNC(int) PyImport_AppendInittab(char *name, PyObject* (*initfunc)(void)); +PyAPI_FUNC(int) PyImport_AppendInittab(const char *name, PyObject* (*initfunc)(void)); PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab); struct _frozen { -- cgit v1.2.1