diff --git a/sflphone-client-gnome/src/actions.c b/sflphone-client-gnome/src/actions.c index cebc3835cb1d63302dd4701f5bcebae2a09fef5f..772ed014d165e8a1cefd345e52e15df4d45c8c30 100644 --- a/sflphone-client-gnome/src/actions.c +++ b/sflphone-client-gnome/src/actions.c @@ -1101,12 +1101,12 @@ void sflphone_fill_codec_list () { void sflphone_fill_codec_list_per_account (account_t **account) { - gchar **order; + gchar **order; gchar** details; gchar** pl; - gchar *accountID; - GQueue *codeclist; - gboolean active = FALSE; + gchar *accountID; + GQueue *codeclist; + gboolean active = FALSE; order = (gchar**) dbus_get_active_codec_list ((*account)->accountID); codeclist = (*account)->codecs; @@ -1118,7 +1118,7 @@ void sflphone_fill_codec_list_per_account (account_t **account) { { codec_t * cpy; // Each account will have a copy of the system-wide capabilities - codec_create_new_from_caps (codec_list_get_by_payload ((gconstpointer) atoi (*order), NULL), &cpy); + codec_create_new_from_caps (codec_list_get_by_payload ((gconstpointer) (size_t)atoi (*order), NULL), &cpy); if (cpy) { cpy->is_active = TRUE; codec_list_add (cpy, &codeclist); @@ -1136,7 +1136,7 @@ void sflphone_fill_codec_list_per_account (account_t **account) { codec_t * current_cap = capabilities_get_nth (i); // Check if this codec has already been enabled for this account - if (codec_list_get_by_payload ( (gconstpointer) current_cap->_payload, codeclist) == NULL) { + if (codec_list_get_by_payload ( (gconstpointer) (size_t)(current_cap->_payload), codeclist) == NULL) { // codec_t *cpy; // codec_create_new_from_caps (current_cap, &cpy); current_cap->is_active = active; diff --git a/sflphone-client-gnome/src/contacts/addressbook.c b/sflphone-client-gnome/src/contacts/addressbook.c index d9b987c6340af544880f01ef9e74ded840bfd2b4..dfa4df26b42c0cb271846b9c07b1400df58b7352 100644 --- a/sflphone-client-gnome/src/contacts/addressbook.c +++ b/sflphone-client-gnome/src/contacts/addressbook.c @@ -32,7 +32,7 @@ void addressbook_search(GtkEntry* entry) { - gchar* query = gtk_entry_get_text(GTK_ENTRY (entry)); + const gchar* query = gtk_entry_get_text(GTK_ENTRY (entry)); if (strlen(query) >= 3) { AddressBook_Config *addressbook_config; diff --git a/sflphone-client-gnome/src/dbus/dbus.c b/sflphone-client-gnome/src/dbus/dbus.c index 48f047c0929ac7515dd142a25e9f6ad61e95026d..f764878d68107399a95bca3333af8270e5c5254d 100644 --- a/sflphone-client-gnome/src/dbus/dbus.c +++ b/sflphone-client-gnome/src/dbus/dbus.c @@ -2605,7 +2605,7 @@ void dbus_enable_status_icon (const gchar *value) { gchar* dbus_is_status_icon_enabled (void) { GError *error = NULL; - gchar* value = TRUE; + gchar *value = NULL; org_sflphone_SFLphone_ConfigurationManager_is_status_icon_enabled (configurationManagerProxy, &value, &error);