]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Cast function to correct type.
authorAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 03:10:12 +0000 (03:10 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 28 Apr 2000 03:10:12 +0000 (03:10 +0000)
gdb/ChangeLog
gdb/target.c

index 159600691413f080249ea57fb236f51447a0757e..6818911e63c61d520155e4fc0e5b240ea6faeff7 100644 (file)
@@ -1,3 +1,9 @@
+Fri Apr 28 12:21:28 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>:
+       * target.c (do_monitor_command): Cast tcomplain to correct
+       function type in comparison.
+
 Thu Apr 27 10:06:42 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * TODO: Document IRIX X ARM cross compile problems.
index a755f3303762718bf4ac9ab377640d5cde10e73f..02ccc25da31b4a3629f44ca0b9d000cc1c0c3e3b 100644 (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");
     }