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 /gdb/ser-tcp.c | |
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.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r-- | gdb/ser-tcp.c | 2 |
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; |