diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-28 03:10:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-28 03:10:44 +0000 |
commit | 2b5fe715f594881f50316f6622d9a5e37768f234 (patch) | |
tree | dc7f36cc1eb9b1adb2ed07c45620856825cf7c2a /gdb/target.c | |
parent | cbda0a99a3593103bd5d5573ac5c86264d519b3f (diff) | |
download | fsf-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.c | 6 |
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"); } |