* python/py-type.c (typy_has_key): Make 'field' const.
This commit is contained in:
parent
d6c5869f50
commit
2ff6b08097
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue