aboutsummaryrefslogtreecommitdiff
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
commit2b5fe715f594881f50316f6622d9a5e37768f234 (patch)
treedc7f36cc1eb9b1adb2ed07c45620856825cf7c2a /gdb/target.c
parentcbda0a99a3593103bd5d5573ac5c86264d519b3f (diff)
downloadfsf-binutils-gdb-2b5fe715f594881f50316f6622d9a5e37768f234.zip
fsf-binutils-gdb-2b5fe715f594881f50316f6622d9a5e37768f234.tar.gz
fsf-binutils-gdb-2b5fe715f594881f50316f6622d9a5e37768f234.tar.bz2
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 a755f33..02ccc25 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");
}