]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
type_error(): Added "const" to signature to eliminate warning with -Wall.
authorFred Drake <fdrake@acm.org>
Sun, 9 Jul 2000 04:34:13 +0000 (04:34 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 9 Jul 2000 04:34:13 +0000 (04:34 +0000)
Objects/abstract.c

index c13cb72d66fe5e62b07f2c9f8f5af666ed0a79e2..5717815834a4159d8e7ed0269369e4cb59eb60cc 100644 (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;