1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Better function naming

This commit is contained in:
LemonBoy 2015-12-09 15:43:31 +01:00
parent 750df38e8c
commit 60c501625b

View File

@ -30,7 +30,7 @@
GSList *setupchannels; GSList *setupchannels;
static int compare_channel_name (CONFIG_NODE *node, CHANNEL_SETUP_REC *channel) static int compare_channel_setup (CONFIG_NODE *node, CHANNEL_SETUP_REC *channel)
{ {
char *name, *chatnet; char *name, *chatnet;
@ -52,7 +52,7 @@ static void channel_setup_save(CHANNEL_SETUP_REC *channel)
/* Try to find this channel in the configuration */ /* Try to find this channel in the configuration */
config_node = g_slist_find_custom(parentnode->value, channel, config_node = g_slist_find_custom(parentnode->value, channel,
(GCompareFunc)compare_channel_name); (GCompareFunc)compare_channel_setup);
if (config_node != NULL) if (config_node != NULL)
/* Let's update this channel record */ /* Let's update this channel record */
node = config_node->data; node = config_node->data;
@ -93,7 +93,7 @@ static void channel_config_remove(CHANNEL_SETUP_REC *channel)
/* Try to find this channel in the configuration */ /* Try to find this channel in the configuration */
config_node = g_slist_find_custom(parentnode->value, channel, config_node = g_slist_find_custom(parentnode->value, channel,
(GCompareFunc)compare_channel_name); (GCompareFunc)compare_channel_setup);
if (config_node != NULL) if (config_node != NULL)
/* Delete the channel from the configuration */ /* Delete the channel from the configuration */