tester: fix compilation

This commit is contained in:
Gautier Pelloux-Prayer 2015-07-03 09:23:40 +02:00
parent f9a9718ab2
commit 7721875fe1
3 changed files with 8 additions and 6 deletions

@ -1 +1 @@
Subproject commit 4a21478fb08ebf0aa9e6a9cbedc13f123d008dcb
Subproject commit cef9ff2764a6317baee7e011847866b14b8b77d4

View file

@ -26,8 +26,10 @@
#include <math.h>
#ifdef _WIN32
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif
extern int bc_printf_verbosity_info;
extern int bc_printf_verbosity_error;

View file

@ -577,7 +577,7 @@ static void small_file_transfer_message(void) {
#ifdef HAVE_LIME
static FILE* fopen_from_write_dir(const char * name, const char * mode) {
char *filepath = bc_tester_res("%s", bc_tester_writable_dir_prefix,name);
char *filepath = bc_tester_file(name);
FILE * file = fopen(filepath,mode);
ms_free(filepath);
return file;
@ -628,11 +628,11 @@ static void lime_file_transfer_message_base(bool_t encrypt_file) {
ms_free(marie_id);
ms_free(pauline_id);
filepath = bc_tester_res("%s", bc_tester_writable_dir_prefix,"tmpZIDCacheMarie.xml");
filepath = bc_tester_file("tmpZIDCacheMarie.xml");
linphone_core_set_zrtp_secrets_file(marie->lc, filepath);
ms_free(filepath);
filepath = bc_tester_res("%s", bc_tester_writable_dir_prefix,"tmpZIDCachePauline.xml");
filepath = bc_tester_file("tmpZIDCachePauline.xml");
linphone_core_set_zrtp_secrets_file(pauline->lc, filepath);
ms_free(filepath);
@ -889,11 +889,11 @@ static void lime_text_message(void) {
fclose(ZIDCacheMarieFD);
fclose(ZIDCachePaulineFD);
filepath = bc_tester_res("%s", bc_tester_writable_dir_prefix,"tmpZIDCacheMarie.xml");
filepath = bc_tester_file("tmpZIDCacheMarie.xml");
linphone_core_set_zrtp_secrets_file(marie->lc, filepath);
ms_free(filepath);
filepath = bc_tester_res("%s", bc_tester_writable_dir_prefix,"tmpZIDCachePauline.xml");
filepath = bc_tester_file("tmpZIDCachePauline.xml");
linphone_core_set_zrtp_secrets_file(pauline->lc, filepath);
ms_free(filepath);