From b9f2ee4be5cce89c1730166f05c656312a2a67e0 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)> Date: Wed, 7 Apr 2010 12:28:03 -0400 Subject: [PATCH] [#2926] Fix minor compilation warnings --- sflphone-client-gnome/src/actions.c | 12 ++++++------ sflphone-client-gnome/src/contacts/addressbook.c | 2 +- sflphone-client-gnome/src/dbus/dbus.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sflphone-client-gnome/src/actions.c b/sflphone-client-gnome/src/actions.c index cebc3835cb..772ed014d1 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 d9b987c634..dfa4df26b4 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 48f047c092..f764878d68 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); -- GitLab