summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-09 04:34:13 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-09 04:34:13 (GMT)
commit4201b9e42038c24a5d5f0ae856eba1c5afab90c3 (patch)
treedf144dbe165ebc92def81816e36d6dc1099980a3 /Objects
parent3be9a8a5edb3ceaf0aabf96343719c93a11a76d9 (diff)
downloadcpython-4201b9e42038c24a5d5f0ae856eba1c5afab90c3.zip
cpython-4201b9e42038c24a5d5f0ae856eba1c5afab90c3.tar.gz
cpython-4201b9e42038c24a5d5f0ae856eba1c5afab90c3.tar.bz2
type_error(): Added "const" to signature to eliminate warning with -Wall.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index c13cb72..5717815 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -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;