* amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
[deliverable/binutils-gdb.git] / gdb / eval.c
index 0244f7a039bbe8479fbf94325d5102445231031c..9913a72b0e79b54844a8132b31f2bae6f5c7ec42 100644 (file)
@@ -335,7 +335,8 @@ evaluate_struct_tuple (struct value *struct_val,
              for (fieldno = 0; fieldno < TYPE_NFIELDS (struct_type);
                   fieldno++)
                {
-                 char *field_name = TYPE_FIELD_NAME (struct_type, fieldno);
+                 const char *field_name =
+                   TYPE_FIELD_NAME (struct_type, fieldno);
 
                  if (field_name != NULL && strcmp (field_name, label) == 0)
                    {
@@ -348,7 +349,8 @@ evaluate_struct_tuple (struct value *struct_val,
              for (fieldno = 0; fieldno < TYPE_NFIELDS (struct_type);
                   fieldno++)
                {
-                 char *field_name = TYPE_FIELD_NAME (struct_type, fieldno);
+                 const char *field_name =
+                   TYPE_FIELD_NAME (struct_type, fieldno);
 
                  field_type = TYPE_FIELD_TYPE (struct_type, fieldno);
                  if ((field_name == 0 || *field_name == '\0')
This page took 0.025476 seconds and 4 git commands to generate.