]> www.tinc-vpn.org Git - tinc/blobdiff - src/info.c
Make sure the top command can be used more than once in tincctl's shell.
[tinc] / src / info.c
index 0ff56cde10789fa71379877591b8509d5c87fb6f..18b8e24ac997740a43578e1bb05f666a04fbcad9 100644 (file)
@@ -33,7 +33,7 @@ void logger(int level, int priority, const char *format, ...) {
         va_end(ap);
 }
 
-static char *strip_weight(char *netstr) {
+char *strip_weight(char *netstr) {
        int len = strlen(netstr);
        if(len >= 3 && !strcmp(netstr + len - 3, "#10"))
                netstr[len - 3] = 0;