Skip to content

Commit

Permalink
Fix setsockopt() warning on MinGW build
Browse files Browse the repository at this point in the history
The optval argument is a 'const char *' there.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 6, 2014
1 parent aff95c7 commit d096ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtls.c
Expand Up @@ -503,7 +503,7 @@ int connect_dtls_socket(struct openconnect_info *vpninfo)
vpninfo->protect_socket(vpninfo->cbdata, dtls_fd);

sndbuf = vpninfo->ip_info.mtu * 2;
setsockopt(dtls_fd, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf));
setsockopt(dtls_fd, SOL_SOCKET, SO_SNDBUF, (void *)&sndbuf, sizeof(sndbuf));

if (vpninfo->dtls_local_port) {
union {
Expand Down

0 comments on commit d096ff2

Please sign in to comment.