diff options
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r-- | gdb/typeprint.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 8dc57f2..8fbd178 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -87,7 +87,7 @@ struct typedef_hash_table static hashval_t hash_typedef_field (const void *p) { - const struct typedef_field *tf = p; + const struct typedef_field *tf = (const struct typedef_field *) p; struct type *t = check_typedef (tf->type); return htab_hash_string (TYPE_SAFE_NAME (t)); @@ -98,8 +98,8 @@ hash_typedef_field (const void *p) static int eq_typedef_field (const void *a, const void *b) { - const struct typedef_field *tfa = a; - const struct typedef_field *tfb = b; + const struct typedef_field *tfa = (const struct typedef_field *) a; + const struct typedef_field *tfb = (const struct typedef_field *) b; return types_equal (tfa->type, tfb->type); } @@ -195,7 +195,7 @@ free_typedef_hash (struct typedef_hash_table *table) static void do_free_typedef_hash (void *arg) { - free_typedef_hash (arg); + free_typedef_hash ((struct typedef_hash_table *) arg); } /* Return a new cleanup that frees TABLE. */ @@ -211,7 +211,7 @@ make_cleanup_free_typedef_hash (struct typedef_hash_table *table) static int copy_typedef_hash_element (void **slot, void *nt) { - htab_t new_table = nt; + htab_t new_table = (htab_t) nt; void **new_slot; new_slot = htab_find_slot (new_table, *slot, INSERT); @@ -242,7 +242,7 @@ copy_typedef_hash (struct typedef_hash_table *table) static void do_free_global_table (void *arg) { - struct type_print_options *flags = arg; + struct type_print_options *flags = (struct type_print_options *) arg; free_typedef_hash (flags->global_typedefs); free_ext_lang_type_printers (flags->global_printers); @@ -281,7 +281,7 @@ find_global_typedef (const struct type_print_options *flags, slot = htab_find_slot (flags->global_typedefs->table, &tf, INSERT); if (*slot != NULL) { - new_tf = *slot; + new_tf = (struct typedef_field *) *slot; return new_tf->name; } @@ -320,7 +320,8 @@ find_typedef_in_hash (const struct type_print_options *flags, struct type *t) tf.name = NULL; tf.type = t; - found = htab_find (flags->local_typedefs->table, &tf); + found = (struct typedef_field *) htab_find (flags->local_typedefs->table, + &tf); if (found != NULL) return found->name; |