diff options
author | Steffan Karger <steffan@karger.me> | 2014-08-20 23:00:26 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2014-09-15 20:19:56 +0200 |
commit | 555b54cc0f0d6495ff427b9f02ecc3bc8ab73141 (patch) | |
tree | 479c9ba47c53902a8bb50ab065a680eab167cc45 | |
parent | 5ead2ae0f32e8e6d879ac0de352214a66a7bb351 (diff) | |
download | openvpn-555b54cc0f0d6495ff427b9f02ecc3bc8ab73141.tar.gz openvpn-555b54cc0f0d6495ff427b9f02ecc3bc8ab73141.tar.xz openvpn-555b54cc0f0d6495ff427b9f02ecc3bc8ab73141.zip |
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>
-rw-r--r-- | src/openvpn/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index f536daa..84eb6ed 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2934,8 +2934,8 @@ options_string (const struct options *o, o->ifconfig_ipv6_local, o->ifconfig_ipv6_netbits, o->ifconfig_ipv6_remote, - (in_addr_t)0, - (in_addr_t)0, + NULL, + NULL, false, NULL); if (tt) |