diff options
author | marha <marha@users.sourceforge.net> | 2011-03-09 07:49:36 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-09 07:49:36 +0000 |
commit | ee3ac3eb8b9ce33fe11c561dd85b9ec3befb7101 (patch) | |
tree | 38f1a2c5a65a86247d0ffb9259ec4b31ecff9155 /X11/xtrans | |
parent | 1843beee2e3b0a0c8034aa03cea95d796c34d238 (diff) | |
download | vcxsrv-ee3ac3eb8b9ce33fe11c561dd85b9ec3befb7101.tar.gz vcxsrv-ee3ac3eb8b9ce33fe11c561dd85b9ec3befb7101.tar.bz2 vcxsrv-ee3ac3eb8b9ce33fe11c561dd85b9ec3befb7101.zip |
Solved compile warnings when ipv6 is enabled
Diffstat (limited to 'X11/xtrans')
-rw-r--r-- | X11/xtrans/Xtranssock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/X11/xtrans/Xtranssock.c b/X11/xtrans/Xtranssock.c index a17c162e9..7cbb1432d 100644 --- a/X11/xtrans/Xtranssock.c +++ b/X11/xtrans/Xtranssock.c @@ -647,7 +647,7 @@ TRANS(SocketOpenCOTSServer) (Xtransport *thistrans, char *protocol, if (Sockettrans2devtab[i].family == AF_INET6) { int one = 1; - setsockopt(ciptr->fd, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(int)); + setsockopt(ciptr->fd, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&one, sizeof(int)); } #endif /* Save the index for later use */ @@ -732,7 +732,7 @@ TRANS(SocketOpenCLTSServer) (Xtransport *thistrans, char *protocol, if (Sockettrans2devtab[i].family == AF_INET6) { int one = 1; - setsockopt(ciptr->fd, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(int)); + setsockopt(ciptr->fd, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&one, sizeof(int)); } #endif /* Save the index for later use */ |