20000-05-18 H.J. Lu (hjl@gnu.org)
[binutils-gdb.git] / gdb / remote-e7000.c
index 5e1017f4f7dc01c39ea8cb490586706fd6d1df34..608f116c502e9d8ddf07992fd44164b3ef6123ed 100644 (file)
@@ -37,7 +37,7 @@
 #include "gdbarch.h"
 #include "inferior.h"
 #include "target.h"
-#include "wait.h"
+#include "gdb_wait.h"
 #include "value.h"
 #include "command.h"
 #include <signal.h>
@@ -1580,7 +1580,7 @@ e7000_load (args, from_tty)
       perror_with_name (filename);
       return;
     }
-  old_chain = make_cleanup ((make_cleanup_func) bfd_close, pbfd);
+  old_chain = make_cleanup_bfd_close (pbfd);
 
   if (!bfd_check_format (pbfd, bfd_object))
     error ("\"%s\" is not an object file: %s", filename,