projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b22b9d4
)
Remove unused code that caused warnings about an uninitialized variable.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 12 Jul 2015 10:55:13 +0000
(12:55 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 12 Jul 2015 10:55:13 +0000
(12:55 +0200)
src/subnet_parse.c
patch
|
blob
|
history
diff --git
a/src/subnet_parse.c
b/src/subnet_parse.c
index c919b59a8eef028710498f77052ebb894c6ba350..611d6bd4415a83a2c4e99a921ce6f5c1df46aae8 100644
(file)
--- 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;
}