projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
C99 extravaganza.
[tinc]
/
src
/
subnet_parse.c
diff --git
a/src/subnet_parse.c
b/src/subnet_parse.c
index
a3c904f
..
22f5d70
100644
(file)
--- a/
src/subnet_parse.c
+++ b/
src/subnet_parse.c
@@
-194,7
+194,7
@@
bool str2net(subnet_t *subnet, const char *subnetstr) {
subnet->net.ipv4.prefixlength = l;
subnet->weight = weight;
subnet->net.ipv4.prefixlength = l;
subnet->weight = weight;
- for(i = 0; i < 4; i++) {
+ for(i
nt i
= 0; i < 4; i++) {
if(x[i] > 255)
return false;
subnet->net.ipv4.address.x[i] = x[i];
if(x[i] > 255)
return false;
subnet->net.ipv4.address.x[i] = x[i];