diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 4 | ||||
-rw-r--r-- | gdb/cli/cli-dump.c | 4 | ||||
-rw-r--r-- | gdb/cli/cli-script.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 424bf5e..6753c70 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1554,8 +1554,8 @@ ambiguous_line_spec (struct symtabs_and_lines *sals) static int compare_symtabs (const void *a, const void *b) { - const struct symtab_and_line *sala = a; - const struct symtab_and_line *salb = b; + const struct symtab_and_line *sala = (const struct symtab_and_line *) a; + const struct symtab_and_line *salb = (const struct symtab_and_line *) b; const char *dira = SYMTAB_DIRNAME (sala->symtab); const char *dirb = SYMTAB_DIRNAME (salb->symtab); int r; diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index aabe3e3..931bb4a 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -392,7 +392,7 @@ struct dump_context static void call_dump_func (struct cmd_list_element *c, char *args, int from_tty) { - struct dump_context *d = get_cmd_context (c); + struct dump_context *d = (struct dump_context *) get_cmd_context (c); d->func (args, d->mode); } @@ -447,7 +447,7 @@ struct callback_data { static void restore_section_callback (bfd *ibfd, asection *isec, void *args) { - struct callback_data *data = args; + struct callback_data *data = (struct callback_data *) args; bfd_vma sec_start = bfd_section_vma (ibfd, isec); bfd_size_type size = bfd_section_size (ibfd, isec); bfd_vma sec_end = sec_start + size; diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 624a493..6a3c068 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -307,7 +307,7 @@ print_command_lines (struct ui_out *uiout, struct command_line *cmd, static void clear_hook_in_cleanup (void *data) { - struct cmd_list_element *c = data; + struct cmd_list_element *c = (struct cmd_list_element *) data; c->hook_in = 0; /* Allow hook to work again once it is complete. */ } @@ -341,7 +341,7 @@ execute_cmd_post_hook (struct cmd_list_element *c) static void do_restore_user_call_depth (void * call_depth) { - int *depth = call_depth; + int *depth = (int *) call_depth; (*depth)--; if ((*depth) == 0) @@ -1390,7 +1390,7 @@ free_command_lines (struct command_line **lptr) static void do_free_command_lines_cleanup (void *arg) { - free_command_lines (arg); + free_command_lines ((struct command_line **) arg); } struct cleanup * |