From: Gert Doering Date: Tue, 10 Nov 2015 22:17:03 +0100 Message-Id: <1447190223-8065-1-git-send-email-gert@...1296...> Subject: [Openvpn-devel] [PATCH] Fix FreeBSD-specific mishandling of gc arena pointer in create_arbitrary_remote() 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 ... and while at it, fix warning about losing "const" qualifier on return. Signed-off-by: Gert Doering --- src/openvpn/tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 24a61ec..6679330 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -641,7 +641,7 @@ void delete_route_connected_v6_net(struct tuntap * tt, * is still point to point and no layer 2 resolution is done... */ -char * +const char * create_arbitrary_remote( struct tuntap *tt, struct gc_arena * gc ) { in_addr_t remote; @@ -650,7 +650,7 @@ create_arbitrary_remote( struct tuntap *tt, struct gc_arena * gc ) if ( remote == tt->local ) remote ++; - return print_in_addr_t (remote, 0, &gc); + return print_in_addr_t (remote, 0, gc); } #endif -- 2.6.1