diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-17 19:12:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-17 19:12:19 +0000 |
commit | 762f08a3976cceca00a4467cbc3eeae4d2edc3e4 (patch) | |
tree | 55e5879d12114e69579249ea78630705bd71df8d /gdb/gdbtypes.c | |
parent | a84d24ee80d7a8bb646d9e2b4ae3bf5bb7ff7a8d (diff) | |
download | gdb-762f08a3976cceca00a4467cbc3eeae4d2edc3e4.zip gdb-762f08a3976cceca00a4467cbc3eeae4d2edc3e4.tar.gz gdb-762f08a3976cceca00a4467cbc3eeae4d2edc3e4.tar.bz2 |
2003-01-17 Andrew Cagney <ac131313@redhat.com>
* main.c (captured_main): Don't use PTR.
* cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
* gdbtypes.c (lookup_primitive_typename): Ditto.
(lookup_struct_elt_type): Ditto.
* f-valprint.c (info_common_command): Ditto.
(list_all_visible_commons): Ditto.
* jv-typeprint.c (java_type_print_base): Ditto.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 7ef423a..679822f 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1021,7 +1021,7 @@ lookup_primitive_typename (char *name) for (p = current_language->la_builtin_type_vector; *p != NULL; p++) { - if (STREQ (TYPE_NAME (**p), name)) + if (strcmp (TYPE_NAME (**p), name) == 0) { return (**p); } @@ -1228,7 +1228,7 @@ lookup_struct_elt_type (struct type *type, char *name, int noerr) char *typename; typename = type_name_no_tag (type); - if (typename != NULL && STREQ (typename, name)) + if (typename != NULL && strcmp (typename, name) == 0) return type; } #endif |