diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-06-28 20:48:14 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-06-28 20:48:14 +0000 |
commit | edf8c5a3cc053744b8b95b3ba2bbd8ebfc6ce9db (patch) | |
tree | 1fd183fdd9a94d017c82d11b8dfd0b6683232808 /gdb/eval.c | |
parent | 63a09be56ee011e140669c190ef0080fbdd108ca (diff) | |
download | gdb-edf8c5a3cc053744b8b95b3ba2bbd8ebfc6ce9db.zip gdb-edf8c5a3cc053744b8b95b3ba2bbd8ebfc6ce9db.tar.gz gdb-edf8c5a3cc053744b8b95b3ba2bbd8ebfc6ce9db.tar.bz2 |
* eval.c (evaluate_struct_tuple): Use strcmp instead of
DEPRECATED_STREQ.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -225,7 +225,7 @@ evaluate_struct_tuple (struct value *struct_val, fieldno++) { char *field_name = TYPE_FIELD_NAME (struct_type, fieldno); - if (field_name != NULL && DEPRECATED_STREQ (field_name, label)) + if (field_name != NULL && strcmp (field_name, label) == 0) { variantno = -1; subfieldno = fieldno; @@ -253,9 +253,9 @@ evaluate_struct_tuple (struct value *struct_val, subfieldno < TYPE_NFIELDS (substruct_type); subfieldno++) { - if (DEPRECATED_STREQ (TYPE_FIELD_NAME (substruct_type, + if (strcmp(TYPE_FIELD_NAME (substruct_type, subfieldno), - label)) + label) == 0) { goto found; } |