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 | |
parent | d6c5869f500e76a23480ab50b4b48e980e73f01c (diff) | |
download | gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.zip gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.tar.gz gdb-2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629.tar.bz2 |
* python/py-type.c (typy_has_key): Make 'field' const.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/python/py-type.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d8f007..aa8a105 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-10-13 Tom Tromey <tromey@redhat.com> + + * python/py-type.c (typy_has_key): Make 'field' const. + 2011-10-13 Luis Machado <lgustavo@codesourcery.com> * remote.c (remote_save_trace_data): Invert comparison. 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)) |