Browse code

Fix clang warning in options.c

fixed warning: expression which evaluates to zero treated as a
null pointer constant of type 'struct addrinfo *'

Seems to be innocent, but clang is correct that this is strange.
init_tun() expects two pointers, but options_string() tried to
feed it two uint32_t values.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: David Sommerseth <dazo@users.sourceforge.net>
Message-Id: <1408568426-19601-2-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9004
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Steffan Karger authored on 2014/08/21 06:00:26
Showing 1 changed files
... ...
@@ -2934,8 +2934,8 @@ options_string (const struct options *o,
2934 2934
 		     o->ifconfig_ipv6_local,
2935 2935
 		     o->ifconfig_ipv6_netbits,
2936 2936
 		     o->ifconfig_ipv6_remote,
2937
-		     (in_addr_t)0,
2938
-		     (in_addr_t)0,
2937
+		     NULL,
2938
+		     NULL,
2939 2939
 		     false,
2940 2940
 		     NULL);
2941 2941
       if (tt)