Cast function to correct type.

This commit is contained in:
Andrew Cagney
2000-04-28 03:10:44 +00:00
parent cbda0a99a3
commit 2b5fe715f5
3 changed files with 17 additions and 3 deletions

View File

@@ -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");
}