diff options
author | Tom Tromey <tromey@redhat.com> | 2011-10-13 13:55:30 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-10-13 13:55:30 +0000 |
commit | 2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629 (patch) | |
tree | eb3528d2fadbe8c48cd565e034543a0a9429dc67 /gdb/python | |
parent | d6c5869f500e76a23480ab50b4b48e980e73f01c (diff) | |
download | fsf-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.c | 2 |
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)) |