summaryrefslogtreecommitdiff
path: root/nest/config.Y
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-04-29 00:36:35 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-04-29 01:24:30 +0200
commit1d21306785392e997099362fbc863b050fe359da (patch)
treefcd3edf7e94c93e74a8b7be82933191ddbb44cb8 /nest/config.Y
parente919601aaf29615edb2a231e58a358c2c5c9d286 (diff)
Minor fixes
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/config.Y b/nest/config.Y
index b0f9642f..e672d730 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -629,7 +629,7 @@ r_args_for:
net_fill_ip_host($$, SYM_VAL($1).ip);
}
else if (($1->class == (SYM_CONSTANT | T_NET)) && net_type_match(SYM_VAL($1).net, NB_IP | NB_VPN))
- $$ = SYM_VAL($1).net;
+ $$ = (net_addr *) SYM_VAL($1).net; /* Avoid const warning */
else
cf_error("IP address or network expected");
}