From: James Yonan Date: Thu, 8 May 2014 22:50:33 +0000 (-0600) Subject: Explicitly cast the third parameter of setsockopt to const void * to avoid warning. X-Git-Tag: v2.3.5~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c216556a0de5250040d95ac8f7a8c18b8683b4;p=thirdparty%2Fopenvpn.git Explicitly cast the third parameter of setsockopt to const void * to avoid warning. Signed-off-by: James Yonan Acked-by: Gert Doering Message-Id: <1399589436-8730-4-git-send-email-james@openvpn.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/8708 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/socket.h b/src/openvpn/socket.h index 4e7e7f846..793cd9fa2 100644 --- a/src/openvpn/socket.h +++ b/src/openvpn/socket.h @@ -1023,7 +1023,7 @@ static inline void link_socket_set_tos (struct link_socket *ls) { if (ls && ls->ptos_defined) - setsockopt (ls->sd, IPPROTO_IP, IP_TOS, &ls->ptos, sizeof (ls->ptos)); + setsockopt (ls->sd, IPPROTO_IP, IP_TOS, (const void *)&ls->ptos, sizeof (ls->ptos)); } #endif