diff options
-rw-r--r-- | cfgdir.c | 10 | ||||
-rw-r--r-- | server.c | 2 | ||||
-rw-r--r-- | server.h | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -25,7 +25,7 @@ enum scfg_keys { SCFG_KEY_PORT, SCFG_KEY_LOCAL, SCFG_KEY_REMOTE, - SCFG_KEY_IDLE, + SCFG_KEY_IDLE_TIMEOUT, }; struct cfg_key_value_map scfg_key_map[] = { @@ -50,8 +50,8 @@ struct cfg_key_value_map scfg_key_map[] = { .key_value = SCFG_KEY_REMOTE, .value_type = CFG_VAL_TYPE_ADDRS, }, { - .key_name = "idle", - .key_value = SCFG_KEY_IDLE, + .key_name = "idle_timeout", + .key_value = SCFG_KEY_IDLE_TIMEOUT, .value_type = CFG_VAL_TYPE_UINT16, }, { .key_name = NULL, @@ -121,8 +121,8 @@ scfg_parse(struct cfg *cfg, struct server *scfg) break; } - case SCFG_KEY_IDLE: - if (!server_set_idle(cfg, scfg, value.uint16)) + case SCFG_KEY_IDLE_TIMEOUT: + if (!server_set_idle_timeout(cfg, scfg, value.uint16)) return; break; @@ -319,7 +319,7 @@ server_add_local(struct cfg *cfg, struct server *scfg, struct sockaddr_in46 *add } bool -server_set_idle(struct cfg *cfg, struct server *scfg, uint16_t timeout) +server_set_idle_timeout(struct cfg *cfg, struct server *scfg, uint16_t timeout) { if (!scfg || scfg->idle_timeout != 0) return false; @@ -49,7 +49,7 @@ bool server_add_remote(struct cfg *cfg, struct server *scfg, bool server_add_local(struct cfg *cfg, struct server *scfg, struct sockaddr_in46 *local); -bool server_set_idle(struct cfg *cfg, struct server *scfg, uint16_t timeout); +bool server_set_idle_timeout(struct cfg *cfg, struct server *scfg, uint16_t timeout); bool server_set_port(struct cfg *cfg, struct server *scfg, uint16_t port); |