summaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-28 03:10:44 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-28 03:10:44 +0000
commit74f47c0fd2f1492aa0b70416b1c3586d39ecf2b6 (patch)
tree244d0d3a27e91a9aa4c6a2b2053e6f972376ec65 /gdb/target.c
parent77f434e96b7a352ee67eecb0f2a70e03b866c87b (diff)
downloadgdb-74f47c0fd2f1492aa0b70416b1c3586d39ecf2b6.tar.gz
Cast function to correct type.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c
index a755f330376..02ccc25da31 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3063,9 +3063,11 @@ static void
do_monitor_command (char *cmd,
int from_tty)
{
- if ((current_target.to_rcmd == (void*) tcomplain)
+ if ((current_target.to_rcmd
+ == (void (*) (char *, struct ui_file *)) tcomplain)
|| (current_target.to_rcmd == debug_to_rcmd
- && (debug_target.to_rcmd == (void*) tcomplain)))
+ && (debug_target.to_rcmd
+ == (void (*) (char *, struct ui_file *)) tcomplain)))
{
error ("\"monitor\" command not supported by this target.\n");
}