diff --git a/coreapi/message_storage.c b/coreapi/message_storage.c index 81e3c0415..eb60537ca 100644 --- a/coreapi/message_storage.c +++ b/coreapi/message_storage.c @@ -237,7 +237,7 @@ unsigned int linphone_chat_message_store(LinphoneChatMessage *msg){ msg->is_read, msg->state, msg->external_body_url, - msg->time, + (int64_t)msg->time, msg->appdata, content_id ); @@ -489,7 +489,7 @@ static void linphone_migrate_timestamps(sqlite3* db){ uint64_t end; linphone_sql_request(db, "COMMIT"); end=ortp_get_cur_time_ms(); - ms_message("Migrated message timestamps to UTC in %lld ms",(end-begin)); + ms_message("Migrated message timestamps to UTC in %lu ms",(unsigned long)(end-begin)); } } diff --git a/tester/call_tester.c b/tester/call_tester.c index 1e04fa448..072ef7002 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -3152,12 +3152,14 @@ static void call_log_from_taken_from_p_asserted_id(void) { LinphoneCallParams *params; const char* paulie_asserted_id ="\"Paupauche\" "; LinphoneAddress *paulie_asserted_id_addr = linphone_address_new(paulie_asserted_id); + LpConfig *marie_lp; + params=linphone_core_create_default_call_parameters(pauline->lc); linphone_call_params_add_custom_header(params,"P-Asserted-Identity",paulie_asserted_id); /*fixme, should be able to add several time the same header linphone_call_params_add_custom_header(params,"P-Asserted-Identity","\"Paupauche\" ");*/ - LpConfig *marie_lp = linphone_core_get_config(marie->lc); + marie_lp = linphone_core_get_config(marie->lc); lp_config_set_int(marie_lp,"sip","call_logs_use_asserted_id_instead_of_from",1);