aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-12-23 01:46:19 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-12-23 01:46:19 +0000
commitee6e208776180d4983cf09b193dec4c68fe3426b (patch)
treec24ef94753c810b38ddc44d6579dc4c8c3a1df6c /gdb/ser-tcp.c
parent67b1268238368041d1a8b91c718dcf84cd25db07 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c2
1 files changed, 1 insertions, 1 deletions
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;