From a82a1acaa2a9aa44eefe48e53cb69067593741d9 Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Thu, 16 Jun 2016 15:27:36 +0200 Subject: [PATCH] size_t warning. --- coreapi/linphonecore.c | 2 +- tester/vcard_tester.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 40ade3d72..d30f5f49f 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5435,7 +5435,7 @@ void linphone_core_migrate_logs_from_rc_to_db(LinphoneCore *lc) { migrated_logs_count = ms_list_size(lc->call_logs); if (original_logs_count == migrated_logs_count) { int i = 0; - ms_debug("call logs migration successful: %i logs migrated", ms_list_size(lc->call_logs)); + ms_debug("call logs migration successful: %u logs migrated", (unsigned int)ms_list_size(lc->call_logs)); lp_config_set_int(lpc, "misc", "call_logs_migration_done", 1); for (; i < original_logs_count; i++) { diff --git a/tester/vcard_tester.c b/tester/vcard_tester.c index e98730f6d..9bb23efa8 100644 --- a/tester/vcard_tester.c +++ b/tester/vcard_tester.c @@ -75,7 +75,7 @@ static void linphone_vcard_import_a_lot_of_friends_test(void) { BC_ASSERT_EQUAL(ms_list_size(friends), 482, int, "%i"); // Thousand vcards contains 482 contacts with a SIP URI elapsed = (double)(end - start); - ms_error("Imported a thousand of vCards from file (only %i friends with SIP address found) in %f seconds", ms_list_size(friends), elapsed / CLOCKS_PER_SEC); + ms_error("Imported a thousand of vCards from file (only %u friends with SIP address found) in %f seconds", (unsigned int)ms_list_size(friends), elapsed / CLOCKS_PER_SEC); lfl = linphone_core_create_friend_list(manager->lc); infile = fopen(import_filepath, "rb"); @@ -98,7 +98,7 @@ static void linphone_vcard_import_a_lot_of_friends_test(void) { BC_ASSERT_EQUAL(ms_list_size(friends), 482, int, "%i"); // Thousand vcards contains 482 contacts with a SIP URI elapsed = (double)(end - start); - ms_error("Imported a thousand of vCards from buffer (only %i friends with SIP address found) in %f seconds", ms_list_size(friends), elapsed / CLOCKS_PER_SEC); + ms_error("Imported a thousand of vCards from buffer (only %u friends with SIP address found) in %f seconds", (unsigned int)ms_list_size(friends), elapsed / CLOCKS_PER_SEC); linphone_friend_list_unref(lfl);