Avoid compiler warnings about 'const char*'.

This commit is contained in:
Thomas Heller 2007-07-11 12:21:58 +00:00
parent e61fd5b5ed
commit 67611a6e49
2 changed files with 2 additions and 2 deletions

View File

@ -1637,7 +1637,7 @@ static struct fielddesc formattable[] = {
*/
struct fielddesc *
getentry(char *fmt)
getentry(const char *fmt)
{
static int initialized = 0;
struct fielddesc *table = formattable;

View File

@ -128,7 +128,7 @@ extern PyTypeObject SimpleType_Type;
#define SimpleTypeObject_Check(v) PyObject_TypeCheck(v, &SimpleType_Type)
extern PyTypeObject CField_Type;
extern struct fielddesc *getentry(char *fmt);
extern struct fielddesc *getentry(const char *fmt);
extern PyObject *