summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/channels-setup.c2
-rw-r--r--src/core/servers-setup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/channels-setup.c b/src/core/channels-setup.c
index ac9b1c23..62d43b2c 100644
--- a/src/core/channels-setup.c
+++ b/src/core/channels-setup.c
@@ -38,7 +38,7 @@ static void channel_setup_save(CHANNEL_SETUP_REC *channel)
index = g_slist_index(setupchannels, channel);
parentnode = iconfig_node_traverse("(channels", TRUE);
- node = config_node_index(parentnode, index);
+ node = config_node_nth(parentnode, index);
if (node == NULL)
node = config_node_section(parentnode, NULL, NODE_TYPE_BLOCK);
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 99f9f579..992f4e00 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -410,7 +410,7 @@ static void server_setup_save(SERVER_SETUP_REC *rec)
index = g_slist_index(setupservers, rec);
parentnode = iconfig_node_traverse("(servers", TRUE);
- node = config_node_index(parentnode, index);
+ node = config_node_nth(parentnode, index);
if (node == NULL)
node = config_node_section(parentnode, NULL, NODE_TYPE_BLOCK);