From ee6e208776180d4983cf09b193dec4c68fe3426b Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 23 Dec 1994 01:46:19 +0000 Subject: [PATCH] * ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to function which expects that. --- gdb/ChangeLog | 10 ++++++++++ gdb/ser-tcp.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6efb4be55bf..1ed5a541f64 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +Thu Dec 22 09:27:16 1994 Jim Kingdon + + * ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to + function which expects that. + +Thu Dec 22 13:25:33 1994 J.T. Conklin (jtc@rtl.cygnus.com) + + * nlm/gdbserve.c, nlm/ppc.c, nlm/ppc.h: Don't try to use + ALTERNATE_MEM_FUNCS. + Wed Dec 21 14:00:26 1994 Rob Savoye * monitor.c: Now supports xmodem as a remoteloadprotocol. diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 7e5735b5351..db9daa268e1 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -95,7 +95,7 @@ tcp_open(scb, name) memcpy (&sockaddr.sin_addr.s_addr, hostent->h_addr, sizeof (struct in_addr)); - if (connect (scb->fd, &sockaddr, sizeof(sockaddr))) + if (connect (scb->fd, (struct sockaddr *) &sockaddr, sizeof(sockaddr))) { close(scb->fd); scb->fd = -1; -- 2.30.2