Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2123?usp=email

to review the following change.


Change subject: route: remove unused max() and gc from BSD get_default_gateway()
......................................................................

route: remove unused max() and gc from BSD get_default_gateway()

Both lost their last users when 76d11614 ("get_default_gateway()
HWADDR overhaul") replaced the SIOCGIFCONF loop with getifaddrs().

Change-Id: I879cd0fe9b1fabb350e1c4558863480064d45903
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/route.c
1 file changed, 0 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/23/2123/1

diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index 53550c4..27012f7 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -3322,12 +3322,9 @@
 #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len))
 #endif

-#define max(a, b) ((a) > (b) ? (a) : (b))
-
 void
 get_default_gateway(struct route_gateway_info *rgi, in_addr_t dest, 
openvpn_net_ctx_t *ctx)
 {
-    struct gc_arena gc = gc_new();
     struct rtmsg m_rtmsg;
     int sockfd = -1;
     int rtm_addrs;
@@ -3529,7 +3526,6 @@
     {
         close(sockfd);
     }
-    gc_free(&gc);
 }

 /* BSD implementation using routing socket (as does IPv4)
@@ -3698,8 +3694,6 @@
     }
 }

-#undef max
-
 #elif defined(TARGET_HAIKU)

 void

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2123?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I879cd0fe9b1fabb350e1c4558863480064d45903
Gerrit-Change-Number: 2123
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to