Commit b8dd4ef4 authored by Ghislain MARY's avatar Ghislain MARY

Fix build on Windows.

parent 76c0af3c
......@@ -156,6 +156,7 @@ void belle_sip_tester_after_each(void) {
}
int belle_sip_tester_set_log_file(const char *filename) {
BctoolboxLogHandler* filehandler;
if (log_file) {
fclose(log_file);
}
......@@ -165,7 +166,10 @@ int belle_sip_tester_set_log_file(const char *filename) {
return -1;
}
belle_sip_message("Redirecting traces to file [%s]", filename);
belle_sip_set_log_file(log_file);
filehandler = (BctoolboxLogHandler*)malloc(sizeof(BctoolboxLogHandler));
filehandler->func = bctbx_logv_file;
filehandler->user_info = log_file;
bctbx_add_log_handler(filehandler);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment