#include <netdb.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
-#include <netinet/udp.h>
#include <signal.h>
#include "gdb_string.h"
_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;