diff options
Diffstat (limited to 'gdb/solib-aix.c')
-rw-r--r-- | gdb/solib-aix.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c index a1e6b8e..0310e66 100644 --- a/gdb/solib-aix.c +++ b/gdb/solib-aix.c @@ -112,7 +112,8 @@ get_solib_aix_inferior_data (struct inferior *inf) { struct solib_aix_inferior_data *data; - data = inferior_data (inf, solib_aix_inferior_data_handle); + data = ((struct solib_aix_inferior_data *) + inferior_data (inf, solib_aix_inferior_data_handle)); if (data == NULL) { data = XCNEW (struct solib_aix_inferior_data); @@ -160,16 +161,16 @@ library_list_start_library (struct gdb_xml_parser *parser, void *user_data, VEC (gdb_xml_value_s) *attributes) { - VEC (lm_info_p) **list = user_data; + VEC (lm_info_p) **list = (VEC (lm_info_p) **) user_data; struct lm_info *item = XCNEW (struct lm_info); struct gdb_xml_value *attr; attr = xml_find_attribute (attributes, "name"); - item->filename = xstrdup (attr->value); + item->filename = xstrdup ((const char *) attr->value); attr = xml_find_attribute (attributes, "member"); if (attr != NULL) - item->member_name = xstrdup (attr->value); + item->member_name = xstrdup ((const char *) attr->value); attr = xml_find_attribute (attributes, "text_addr"); item->text_addr = * (ULONGEST *) attr->value; @@ -193,7 +194,7 @@ library_list_start_list (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC (gdb_xml_value_s) *attributes) { - char *version = xml_find_attribute (attributes, "version")->value; + char *version = (char *) xml_find_attribute (attributes, "version")->value; if (strcmp (version, "1.0") != 0) gdb_xml_error (parser, @@ -206,7 +207,7 @@ library_list_start_list (struct gdb_xml_parser *parser, static void solib_aix_free_library_list (void *p) { - VEC (lm_info_p) **result = p; + VEC (lm_info_p) **result = (VEC (lm_info_p) **) p; struct lm_info *info; int ix; |