* python/py-type.c (typy_has_key): Make 'field' const.

This commit is contained in:
Tom Tromey 2011-10-13 13:55:30 +00:00
parent d6c5869f50
commit 2ff6b08097
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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))