mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix compilation on Windows.
This commit is contained in:
parent
112b93a790
commit
36de60130b
2 changed files with 3 additions and 2 deletions
|
|
@ -128,6 +128,7 @@ static void linphone_chat_message_process_response_from_post_file(void *data, co
|
|||
belle_http_request_listener_t *l;
|
||||
belle_generic_uri_t *uri;
|
||||
belle_http_request_t *req;
|
||||
char* ua;
|
||||
|
||||
/* temporary storage of the header of the message part header */
|
||||
char *content_type=belle_sip_strdup_printf("%s/%s", msg->file_transfer_information->type, msg->file_transfer_information->subtype);
|
||||
|
|
@ -141,7 +142,7 @@ static void linphone_chat_message_process_response_from_post_file(void *data, co
|
|||
/* insert it in a multipart body handler which will manage the boundaries of multipart message */
|
||||
belle_sip_multipart_body_handler_t *bh=belle_sip_multipart_body_handler_new(linphone_chat_message_file_transfer_on_progress, msg, (belle_sip_body_handler_t *)first_part_bh);
|
||||
|
||||
char* ua = ms_strdup_printf("%s/%s", linphone_core_get_user_agent_name(), linphone_core_get_user_agent_version());
|
||||
ua = ms_strdup_printf("%s/%s", linphone_core_get_user_agent_name(), linphone_core_get_user_agent_version());
|
||||
|
||||
belle_sip_free(content_type);
|
||||
content_type=belle_sip_strdup_printf("multipart/form-data; boundary=%s",multipart_boundary);
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ char *lp_config_read_relative_file(const LpConfig *lpconfig, const char *filenam
|
|||
char *dir = _lp_config_dirname(lpconfig->filename);
|
||||
char *filepath = ms_strdup_printf("%s/%s", dir, filename);
|
||||
char *result = NULL;
|
||||
if(access(filepath, F_OK) == 0) {
|
||||
if(ortp_file_exist(filepath) == 0) {
|
||||
FILE *file = fopen(filepath, "r");
|
||||
if(file != NULL) {
|
||||
result = ms_new0(char, MAX_LEN);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue