* python/py-type.c (typy_has_key): Make 'field' const.
authorTom Tromey <tromey@redhat.com>
Thu, 13 Oct 2011 13:55:30 +0000 (13:55 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 13 Oct 2011 13:55:30 +0000 (13:55 +0000)
gdb/ChangeLog
gdb/python/py-type.c

index 4d8f007bb40297a9ff932cdb2eeca94f48cd857f..aa8a10566f910ee8dd820a99f9ace2bfb714f505 100644 (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.
index 44a20386e5bf1df60eebbd4908efcb8a9f5e7dc6..875f7aae9ae2b86318a22aa7dc6638d6d9e5ec96 100644 (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))
This page took 0.029603 seconds and 4 git commands to generate.