diff options
Diffstat (limited to 'cfgdir.c')
-rw-r--r-- | cfgdir.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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; } |