diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-12-23 01:46:19 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-12-23 01:46:19 +0000 |
commit | ee6e208776180d4983cf09b193dec4c68fe3426b (patch) | |
tree | c24ef94753c810b38ddc44d6579dc4c8c3a1df6c | |
parent | 67b1268238368041d1a8b91c718dcf84cd25db07 (diff) | |
download | gdb-ee6e208776180d4983cf09b193dec4c68fe3426b.zip gdb-ee6e208776180d4983cf09b193dec4c68fe3426b.tar.gz gdb-ee6e208776180d4983cf09b193dec4c68fe3426b.tar.bz2 |
* ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to
function which expects that.
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/ser-tcp.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6efb4be..1ed5a54 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +Thu Dec 22 09:27:16 1994 Jim Kingdon <kingdon@deneb.cygnus.com> + + * 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 <rob@darkstar.cygnus.com> * monitor.c: Now supports xmodem as a remoteloadprotocol. diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 7e5735b..db9daa2 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; |