From: Guus Sliepen Date: Sun, 12 Jul 2015 10:55:13 +0000 (+0200) Subject: Remove unused code that caused warnings about an uninitialized variable. X-Git-Tag: release-1.1pre12~107 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=97457716d7efc541d18d08263bbd338e94195bd9 Remove unused code that caused warnings about an uninitialized variable. --- diff --git a/src/subnet_parse.c b/src/subnet_parse.c index c919b59a..611d6bd4 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -401,11 +401,8 @@ bool net2str(char *netstr, int len, const subnet_t *subnet) { len -= result; } - if (subnet->weight != DEFAULT_WEIGHT) { + if (subnet->weight != DEFAULT_WEIGHT) snprintf(netstr, len, "#%d", subnet->weight); - netstr += result; - len -= result; - } return true; }