Remove unused variable g_con_list

This commit is contained in:
matt335672
2024-11-28 15:38:11 +00:00
parent 43e960bffd
commit a341d44e1b
-8
View File
@@ -87,7 +87,6 @@ static struct trans *g_list_trans;
/* Variables used to lock g_list_trans */
static struct lock_uds *g_list_trans_lock;
static struct list *g_con_list = NULL;
static int g_pid;
/*****************************************************************************/
@@ -470,17 +469,10 @@ sesman_main_loop(void)
int robjs_count;
intptr_t robjs[1024];
g_con_list = list_create();
if (g_con_list == NULL)
{
LOG(LOG_LEVEL_ERROR, "sesman_main_loop: list_create failed");
return 1;
}
if (sesman_create_listening_transport(g_cfg) != 0)
{
LOG(LOG_LEVEL_ERROR,
"sesman_main_loop: sesman_create_listening_transport failed");
list_delete(g_con_list);
return 1;
}
LOG(LOG_LEVEL_INFO, "Sesman now listening on %s", g_cfg->listen_port);