type_error(): Added "const" to signature to eliminate warning with -Wall.

This commit is contained in:
Fred Drake 2000-07-09 04:34:13 +00:00
parent 3be9a8a5ed
commit 4201b9e420

View file

@ -16,7 +16,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* Shorthands to return certain errors */ /* Shorthands to return certain errors */
static PyObject * static PyObject *
type_error(char *msg) type_error(const char *msg)
{ {
PyErr_SetString(PyExc_TypeError, msg); PyErr_SetString(PyExc_TypeError, msg);
return NULL; return NULL;