Skip to content
Snippets Groups Projects
Commit f2840e06 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9490: cleanup

parent ff5a8f94
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,7 @@ void account_list_free_elm(gpointer elm, gpointer data UNUSED)
{
account_t *a = elm;
g_free(a->accountID);
a->accountID = NULL;
g_free(a);
}
......@@ -297,7 +298,7 @@ gboolean current_account_has_new_message(void)
gboolean account_is_IP2IP(const account_t *account)
{
g_assert(account);
return utf8_case_equal(account->accountID, IP2IP_PROFILE);
return g_strcmp0(account->accountID, IP2IP_PROFILE);
}
static gboolean is_type(const account_t *account, const gchar *type)
......
......@@ -204,7 +204,7 @@ void codec_list_move_codec_down(guint codec_index, GQueue **q)
}
void codec_list_update_to_daemon(account_t *acc)
void codec_list_update_to_daemon(const account_t *acc)
{
// Length of the codec list
int length = g_queue_get_length(acc->codecs);
......
......@@ -127,7 +127,7 @@ void codec_list_move_codec_down (guint index, GQueue **q);
/**
* Notify modifications on codecs to the server
*/
void codec_list_update_to_daemon (account_t *acc);
void codec_list_update_to_daemon (const account_t *acc);
codec_t* codec_list_get_by_payload (gconstpointer payload, GQueue *q);
......
......@@ -913,7 +913,7 @@ create_network(const account_t *account)
GtkWidget* create_published_address(const account_t *account)
{
GtkWidget *table, *frame;
gchar *use_tls =NULL;
gchar *use_tls = NULL;
gchar *published_address = NULL;
gchar *published_port = NULL;
gchar *stun_enable = NULL;
......
......@@ -34,7 +34,7 @@
#include <sflphone_const.h>
void show_account_list_config_dialog (void);
void account_list_config_dialog_fill (void);
void show_account_list_config_dialog(void);
void account_list_config_dialog_fill(void);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment