case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
{
- char *field_name;
+ const char *field_name;
/* If the type is anonymous and the field has no name,
set an appropriate name. */
enum accessibility acc = public_field;
int vptr_fieldno;
struct type *basetype = NULL;
- char *field_name;
+ const char *field_name;
vptr_fieldno = get_vptr_fieldno (type, &basetype);
if (strcmp (parent->name, "private") == 0)