Skip to contentSkip to conversation

remove unused show_connection_list debug function

PATCH In review Heiko Hund 2 participants 2 messages Jul 11, 2012 – Jul 19, 2012

lore
Share & tools
lore

Heiko Hund

author
#0 lore raw

PATCH 1/1 remove unused show_connection_list debug function

---
 src/openvpn/init.c |   25 -------------------------
 1 file changed, 25 deletions(-)
src/openvpn/init.c +0 -25
index f86fc38..81800d3 100644
@@ -316,30 +316,6 @@ init_connection_list (struct context *c)
     }
 }
 
-#if 0 /* fixme -- disable for production */
-static void
-show_connection_list (const struct connection_list *l)
-{
-  int i;
-  dmsg (M_INFO, "CONNECTION_LIST len=%d current=%d",
-	l->len, l->current);
-  for (i = 0; i < l->len; ++i)
-    {
-      dmsg (M_INFO, "[%d] %s:%d proto=%s http_proxy=%d",
-	    i,
-	    l->array[i]->remote,
-	    l->array[i]->remote_port,
-	    proto2ascii(l->array[i]->proto, true),
-	    BOOL_CAST(l->array[i]->http_proxy_options));
-    }
-}
-#else
-static inline void
-show_connection_list (const struct connection_list *l)
-{
-}
-#endif
-
 /*
  * Increment to next connection entry
  */
@@ -374,7 +350,6 @@ next_connection_entry (struct context *c)
 
 	    if (l->current == 0)
 	      newcycle = true;
-	    show_connection_list(l);
 	  }
 
 	ce = l->array[l->current];
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 5 lines · Heiko Hund
---
 src/openvpn/init.c |   25 -------------------------
 1 file changed, 25 deletions(-)

ACK. Applied to master.

commit af417baa93f4ebcc545486cbd9635fbc602ba148

Author: Heiko Hund <[email protected]...>
Date:   Wed Jul 11 15:38:49 2012 +0200
    remove unused show_connection_list debug function
    
    Signed-off-by: Heiko Hund <[email protected]...>
    Acked-by: David Sommerseth <[email protected]...>
    Message-Id: [email protected]...
    URL: http://article.gmane.org/gmane.network.openvpn.devel/6842
    Signed-off-by: David Sommerseth <[email protected]...>

kind regards,

David Sommerseth