From: Alon Bar-Lev Date: Mon, 26 Mar 2012 23:26:40 +0200 Message-Id: <1332797200-9295-7-git-send-email-alon.barlev@...277...> In-Reply-To: References: Subject: [Openvpn-devel] [PATCH 6/6] cleanup: ~0 is too large for 32bit ipv4 address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: Alon Bar-Lev Signed-off-by: Alon Bar-Lev --- src/openvpn/route.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/openvpn/route.c b/src/openvpn/route.c index bf7af63..608403b 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -268,7 +268,7 @@ init_route (struct route *r, const struct route_option *ro, const struct route_list *rl) { - const in_addr_t default_netmask = ~0; + const in_addr_t default_netmask = 0xffffffff; bool status; CLEAR (*r); -- 1.7.3.4