aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-10-13 13:55:30 +0000
committerTom Tromey <tromey@redhat.com>2011-10-13 13:55:30 +0000
commit2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629 (patch)
treeeb3528d2fadbe8c48cd565e034543a0a9429dc67 /gdb/python
parentd6c5869f500e76a23480ab50b4b48e980e73f01c (diff)
downloadfsf-binutils-gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.zip
fsf-binutils-gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.tar.gz
fsf-binutils-gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.tar.bz2
* python/py-type.c (typy_has_key): Make 'field' const.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 44a2038..875f7aa 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -1176,7 +1176,7 @@ static PyObject *
typy_has_key (PyObject *self, PyObject *args)
{
struct type *type = ((type_object *) self)->type;
- char *field;
+ const char *field;
int i;
if (!PyArg_ParseTuple (args, "s", &field))