diff options
Diffstat (limited to 'gdb/python/py-utils.c')
-rw-r--r-- | gdb/python/py-utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-utils.c b/gdb/python/py-utils.c index 0f96aab..a380b34 100644 --- a/gdb/python/py-utils.c +++ b/gdb/python/py-utils.c @@ -382,8 +382,7 @@ gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object) int result; Py_INCREF (object); - /* Python 2.4 did not have a 'const' here. */ - result = PyModule_AddObject (module, (char *) name, object); + result = PyModule_AddObject (module, name, object); if (result < 0) Py_DECREF (object); return result; |