Fixing size_t error on Mac OS.

This commit is contained in:
Sandrine Avakian 2016-06-16 14:01:18 +02:00
parent c13647f8bd
commit b5b0abfdf3
2 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -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);