summaryrefslogtreecommitdiff
path: root/cfgdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfgdir.c')
-rw-r--r--cfgdir.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/cfgdir.c b/cfgdir.c
index 28a300a..436fe13 100644
--- a/cfgdir.c
+++ b/cfgdir.c
@@ -140,21 +140,21 @@ scfg_parse(struct cfg *cfg, struct server *scfg)
break;
case SCFG_KEY_LOCAL: {
- struct sockaddr_in46 *addr, *tmp;
+ struct saddr *saddr, *tmp;
- list_for_each_entry_safe(addr, tmp, &value.addrs, list) {
- list_del(&addr->list);
- server_add_local(cfg, scfg, addr);
+ list_for_each_entry_safe(saddr, tmp, &value.saddrs, list) {
+ list_del(&saddr->list);
+ server_add_local(cfg, scfg, saddr);
}
break;
}
case SCFG_KEY_REMOTE: {
- struct sockaddr_in46 *addr, *tmp;
+ struct saddr *saddr, *tmp;
- list_for_each_entry_safe(addr, tmp, &value.addrs, list) {
- list_del(&addr->list);
- server_add_remote(cfg, scfg, addr);
+ list_for_each_entry_safe(saddr, tmp, &value.saddrs, list) {
+ list_del(&saddr->list);
+ server_add_remote(cfg, scfg, saddr);
}
break;
}
@@ -198,11 +198,11 @@ scfg_parse(struct cfg *cfg, struct server *scfg)
break;
case SCFG_KEY_RCON: {
- struct sockaddr_in46 *addr, *tmp;
+ struct saddr *saddr, *tmp;
- list_for_each_entry_safe(addr, tmp, &value.addrs, list) {
- list_del(&addr->list);
- server_add_rcon(cfg, scfg, addr);
+ list_for_each_entry_safe(saddr, tmp, &value.saddrs, list) {
+ list_del(&saddr->list);
+ server_add_rcon(cfg, scfg, saddr);
}
break;
}