diff options
author | Heiko Hund | 2014-11-15 17:25:08 +0100 |
---|---|---|
committer | Gert Doering | 2014-11-17 21:17:18 +0100 |
commit | a2466d9e6c78c57d579a1fa99c8554eabb9dbe44 (patch) | |
tree | dce61b0b06b3204a285fd3693a7355e38827cd22 /src/openvpn/mtu.c | |
parent | 78b8fc720b6e6c31a889e4efaa28dbbc31da65ea (diff) | |
download | openvpn-a2466d9e6c78c57d579a1fa99c8554eabb9dbe44.zip openvpn-a2466d9e6c78c57d579a1fa99c8554eabb9dbe44.tar.gz |
fix warnings on Windows
Just add a few valid casts that shut up mingw gcc.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1416068708-6871-2-git-send-email-heiko.hund@sophos.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9229
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/mtu.c')
-rw-r--r-- | src/openvpn/mtu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/openvpn/mtu.c b/src/openvpn/mtu.c index 13f3f6c..3665a34 100644 --- a/src/openvpn/mtu.c +++ b/src/openvpn/mtu.c @@ -158,8 +158,7 @@ set_mtu_discover_type (int sd, int mtu_type) if (mtu_type >= 0) { #if defined(HAVE_SETSOCKOPT) && defined(SOL_IP) && defined(IP_MTU_DISCOVER) - if (setsockopt - (sd, SOL_IP, IP_MTU_DISCOVER, &mtu_type, sizeof (mtu_type))) + if (setsockopt (sd, SOL_IP, IP_MTU_DISCOVER, (void *) &mtu_type, sizeof (mtu_type))) msg (M_ERR, "Error setting IP_MTU_DISCOVER type=%d on TCP/UDP socket", mtu_type); #else @@ -288,7 +287,7 @@ void set_sock_extended_error_passing (int sd) { int on = 1; - if (setsockopt (sd, SOL_IP, IP_RECVERR, &on, sizeof (on))) + if (setsockopt (sd, SOL_IP, IP_RECVERR, (void *) &on, sizeof (on))) msg (M_WARN | M_ERRNO, "Note: enable extended error passing on TCP/UDP socket failed (IP_RECVERR)"); } |