diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-frame.c | 2 | ||||
-rw-r--r-- | gdb/python/py-type.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index a8ce598..12cedc3 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -124,7 +124,7 @@ static PyObject * frapy_name (PyObject *self, PyObject *args) { struct frame_info *frame; - char *name; + const char *name; enum language lang; PyObject *result; volatile struct gdb_exception except; diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index dadb037..70ed5d6 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -1271,7 +1271,7 @@ typy_getitem (PyObject *self, PyObject *key) for (i = 0; i < TYPE_NFIELDS (type); i++) { - char *t_field_name = TYPE_FIELD_NAME (type, i); + const char *t_field_name = TYPE_FIELD_NAME (type, i); if (t_field_name && (strcmp_iw (t_field_name, field) == 0)) { @@ -1332,7 +1332,7 @@ typy_has_key (PyObject *self, PyObject *args) for (i = 0; i < TYPE_NFIELDS (type); i++) { - char *t_field_name = TYPE_FIELD_NAME (type, i); + const char *t_field_name = TYPE_FIELD_NAME (type, i); if (t_field_name && (strcmp_iw (t_field_name, field) == 0)) Py_RETURN_TRUE; |