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 | 74f47c0fd2f1492aa0b70416b1c3586d39ecf2b6 (patch) | |
tree | 244d0d3a27e91a9aa4c6a2b2053e6f972376ec65 /gdb/target.c | |
parent | 77f434e96b7a352ee67eecb0f2a70e03b866c87b (diff) | |
download | gdb-74f47c0fd2f1492aa0b70416b1c3586d39ecf2b6.tar.gz |
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 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"); } |