mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Avoid compiler warnings about 'const char*'.
This commit is contained in:
parent
e61fd5b5ed
commit
67611a6e49
2 changed files with 2 additions and 2 deletions
|
@ -1637,7 +1637,7 @@ static struct fielddesc formattable[] = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct fielddesc *
|
struct fielddesc *
|
||||||
getentry(char *fmt)
|
getentry(const char *fmt)
|
||||||
{
|
{
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
struct fielddesc *table = formattable;
|
struct fielddesc *table = formattable;
|
||||||
|
|
|
@ -128,7 +128,7 @@ extern PyTypeObject SimpleType_Type;
|
||||||
#define SimpleTypeObject_Check(v) PyObject_TypeCheck(v, &SimpleType_Type)
|
#define SimpleTypeObject_Check(v) PyObject_TypeCheck(v, &SimpleType_Type)
|
||||||
|
|
||||||
extern PyTypeObject CField_Type;
|
extern PyTypeObject CField_Type;
|
||||||
extern struct fielddesc *getentry(char *fmt);
|
extern struct fielddesc *getentry(const char *fmt);
|
||||||
|
|
||||||
|
|
||||||
extern PyObject *
|
extern PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue