From: Tom Tromey Date: Thu, 13 Oct 2011 13:55:30 +0000 (+0000) Subject: * python/py-type.c (typy_has_key): Make 'field' const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629;p=binutils-gdb.git * python/py-type.c (typy_has_key): Make 'field' const. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d8f007bb40..aa8a10566f9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-10-13 Tom Tromey + + * python/py-type.c (typy_has_key): Make 'field' const. + 2011-10-13 Luis Machado * remote.c (remote_save_trace_data): Invert comparison. diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 44a20386e5b..875f7aae9ae 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))