... and while at it, fix warning about losing "const" qualifier on
return.

Signed-off-by: Gert Doering <g...@greenie.muc.de>
---
 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


Reply via email to