From b5b0abfdf35571c7868ee386324bf0f46e28b3af Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Thu, 16 Jun 2016 14:01:18 +0200 Subject: [PATCH] Fixing size_t error on Mac OS. --- coreapi/friend.c | 4 ++-- gtk/buddylookup.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index 32e840579..6012645d2 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1438,7 +1438,7 @@ MSList* linphone_core_fetch_friends_from_db(LinphoneCore *lc, LinphoneFriendList begin = ortp_get_cur_time_ms(); linphone_sql_request_friend(lc->friends_db, buf, &result); end = ortp_get_cur_time_ms(); - ms_message("%s(): %i results fetched, completed in %i ms",__FUNCTION__, ms_list_size(result), (int)(end-begin)); + ms_message("%s(): %u results fetched, completed in %i ms",__FUNCTION__, (unsigned int)ms_list_size(result), (int)(end-begin)); sqlite3_free(buf); for(elem = result; elem != NULL; elem = elem->next) { @@ -1466,7 +1466,7 @@ MSList* linphone_core_fetch_friends_lists_from_db(LinphoneCore *lc) { begin = ortp_get_cur_time_ms(); linphone_sql_request_friends_list(lc->friends_db, buf, &result); end = ortp_get_cur_time_ms(); - ms_message("%s(): %i results fetched, completed in %i ms",__FUNCTION__, ms_list_size(result), (int)(end-begin)); + ms_message("%s(): %u results fetched, completed in %i ms",__FUNCTION__, (unsigned int)ms_list_size(result), (int)(end-begin)); sqlite3_free(buf); for(elem = result; elem != NULL; elem = elem->next) { diff --git a/gtk/buddylookup.c b/gtk/buddylookup.c index ef3044a1d..33f3f2594 100644 --- a/gtk/buddylookup.c +++ b/gtk/buddylookup.c @@ -178,8 +178,8 @@ static gboolean linphone_gtk_process_buddy_lookup(GtkWidget *w){ results); gtk_progress_bar_set_fraction(pb,1); tmp=g_strdup_printf(ngettext("Found %i contact", - "Found %i contacts", ms_list_size(results)), - ms_list_size(results)); + "Found %u contacts", ms_list_size(results)), + (unsigned int)ms_list_size(results)); gtk_progress_bar_set_text(pb,tmp); g_free(tmp); sip_setup_context_buddy_lookup_free(ctx,req);