summaryrefslogtreecommitdiffstats
path: root/src/openvpn/route.c
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2014-11-15 17:25:08 +0100
committerGert Doering <gert@greenie.muc.de>2014-11-17 21:17:18 +0100
commita2466d9e6c78c57d579a1fa99c8554eabb9dbe44 (patch)
treedce61b0b06b3204a285fd3693a7355e38827cd22 /src/openvpn/route.c
parent78b8fc720b6e6c31a889e4efaa28dbbc31da65ea (diff)
downloadopenvpn-a2466d9e6c78c57d579a1fa99c8554eabb9dbe44.tar.gz
openvpn-a2466d9e6c78c57d579a1fa99c8554eabb9dbe44.tar.xz
openvpn-a2466d9e6c78c57d579a1fa99c8554eabb9dbe44.zip
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/route.c')
-rw-r--r--src/openvpn/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index e76c2bd..5d18213 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -277,7 +277,7 @@ init_route (struct route_ipv4 *r,
/* get_special_addr replaces specialaddr with a special ip addr
like gw. getaddrinfo is called to convert a a addrinfo struct */
- if(get_special_addr (rl, ro->network, &special.s_addr, &status))
+ if(get_special_addr (rl, ro->network, (in_addr_t *) &special.s_addr, &status))
{
special.s_addr = htonl(special.s_addr);
ret = openvpn_getaddrinfo(0, inet_ntoa(special), NULL, 0, NULL,