* bsd-kvm.c: Include "gdbcore.h"
[deliverable/binutils-gdb.git] / gdb / ser-tcp.c
index c6ae19dab02c741564a9b2406a626f3139963def..de8c4283744afbc89bf687f7be09d2b0e07eb825 100644 (file)
 
 static int net_open (struct serial *scb, const char *name);
 static void net_close (struct serial *scb);
-extern int (*ui_loop_hook) (int);
 void _initialize_ser_tcp (void);
 
 /* seconds to wait for connect */
 #define TIMEOUT 15
-/* how many times per second to poll ui_loop_hook */
+/* how many times per second to poll deprecated_ui_loop_hook */
 #define POLL_INTERVAL 2
 
 /* Open a tcp socket */
@@ -133,9 +132,9 @@ net_open (struct serial *scb, const char *name)
          /* While we wait for the connect to complete 
             poll the UI so it can update or the user can 
             interrupt. */
-         if (ui_loop_hook)
+         if (deprecated_ui_loop_hook)
            {
-             if (ui_loop_hook (0))
+             if (deprecated_ui_loop_hook (0))
                {
                  errno = EINTR;
                  net_close (scb);
@@ -208,7 +207,7 @@ void
 _initialize_ser_tcp (void)
 {
   struct serial_ops *ops = XMALLOC (struct serial_ops);
-  memset (ops, sizeof (struct serial_ops), 0);
+  memset (ops, 0, sizeof (struct serial_ops));
   ops->name = "tcp";
   ops->next = 0;
   ops->open = net_open;
This page took 0.023893 seconds and 4 git commands to generate.