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
1 changed files with 1 additions and 1 deletions

View File

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