From 2ff6b08097f66c4d0efe9ec9902a8bbbab3c4629 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 13 Oct 2011 13:55:30 +0000 Subject: [PATCH] * python/py-type.c (typy_has_key): Make 'field' const. --- gdb/ChangeLog | 4 ++++ gdb/python/py-type.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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)) -- 2.30.2