From 25ce4b69dbc55884e6a5ede08103bba9175e4494 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 18 Oct 2021 12:53:15 +0200 Subject: [PATCH] Drop unused variables --- TunnelKit/Sources/Core/RoutingTableEntry.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TunnelKit/Sources/Core/RoutingTableEntry.m b/TunnelKit/Sources/Core/RoutingTableEntry.m index 0eb6e1c..ea46515 100644 --- a/TunnelKit/Sources/Core/RoutingTableEntry.m +++ b/TunnelKit/Sources/Core/RoutingTableEntry.m @@ -411,7 +411,6 @@ char *routename(uint32_t in) char *routename6(struct sockaddr_in6 *sa6) { static char line[MAXHOSTNAMELEN]; - int flag = NI_NUMERICHOST; /* use local variable for safety */ struct sockaddr_in6 sa6_local = {sizeof(sa6_local), AF_INET6, }; @@ -481,10 +480,9 @@ char *netname(uint32_t in, uint32_t mask) char *netname6(struct sockaddr_in6 *sa6, struct sockaddr *sam) { - char host[MAXHOSTNAMELEN]; static char line[MAXHOSTNAMELEN + 10]; u_char *lim; - int masklen, illegal = 0, flag = NI_NUMERICHOST; + int masklen, illegal = 0; struct in6_addr *mask = sam ? &((struct sockaddr_in6 *)sam)->sin6_addr : 0; if (sam && sam->sa_len == 0) {