summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-07 21:02:43 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-07 21:02:43 +0000
commit31f925f50413118a16a16632d7d86cfed1783602 (patch)
treed7811f77cdd331aeef6c95e0da25db2477c00a0b /src/conf.c
parenta08e07b05d737a20f404841ac925fa0ff75eca54 (diff)
- First pass of conf parser stabilization/cleanup
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1646 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/conf.c b/src/conf.c
index 6a7806a..9bb1984 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -1316,8 +1316,8 @@ set_default_conf(void)
/* ServerInfo.name is not rehashable */
/* ServerInfo.name = ServerInfo.name; */
ServerInfo.description = NULL;
- DupString(ServerInfo.network_name, NETWORK_NAME_DEFAULT);
- DupString(ServerInfo.network_desc, NETWORK_DESC_DEFAULT);
+ ServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);
+ ServerInfo.network_desc = xstrdup(NETWORK_DESC_DEFAULT);
memset(&ServerInfo.ip, 0, sizeof(ServerInfo.ip));
ServerInfo.specific_ipv4_vhost = 0;
@@ -1354,11 +1354,11 @@ set_default_conf(void)
ConfigServerHide.links_delay = 300;
ConfigServerHide.hidden = 0;
ConfigServerHide.hide_servers = 0;
- DupString(ConfigServerHide.hidden_name, NETWORK_NAME_DEFAULT);
+ ConfigServerHide.hidden_name = xstrdup(NETWORK_NAME_DEFAULT);
ConfigServerHide.hide_server_ips = 0;
- DupString(ConfigFileEntry.service_name, SERVICE_NAME_DEFAULT);
+ ConfigFileEntry.service_name = xstrdup(SERVICE_NAME_DEFAULT);
ConfigFileEntry.max_watch = WATCHSIZE_DEFAULT;
ConfigFileEntry.glines = 0;
ConfigFileEntry.gline_time = 12 * 3600;
@@ -1417,13 +1417,13 @@ validate_conf(void)
ConfigFileEntry.ts_max_delta = TS_MAX_DELTA_DEFAULT;
if (ServerInfo.network_name == NULL)
- DupString(ServerInfo.network_name,NETWORK_NAME_DEFAULT);
+ ServerInfo.network_name = xstrdup(NETWORK_NAME_DEFAULT);
if (ServerInfo.network_desc == NULL)
- DupString(ServerInfo.network_desc,NETWORK_DESC_DEFAULT);
+ ServerInfo.network_desc = xstrdup(NETWORK_DESC_DEFAULT);
if (ConfigFileEntry.service_name == NULL)
- DupString(ConfigFileEntry.service_name, SERVICE_NAME_DEFAULT);
+ ConfigFileEntry.service_name = xstrdup(SERVICE_NAME_DEFAULT);
ConfigFileEntry.max_watch = IRCD_MAX(ConfigFileEntry.max_watch, WATCHSIZE_MIN);
}