From 1301aa2f7e8618645a5ad276728a7dfa8d4fbbee Mon Sep 17 00:00:00 2001 From: smorlat <smorlat@3f6dc0c8-ddfe-455d-9043-3cd528dc4637> Date: Wed, 20 May 2009 14:16:39 +0000 Subject: [PATCH] fix build errors on linux. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@487 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/console/linphonec.c | 4 ++-- linphone/console/shell.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linphone/console/linphonec.c b/linphone/console/linphonec.c index 153518ff5d..f9295d4f7c 100644 --- a/linphone/console/linphonec.c +++ b/linphone/console/linphonec.c @@ -408,7 +408,7 @@ static void *pipe_thread(void*p){ if (client_sock!=ORTP_PIPE_INVALID){ int len; /*now read from the client */ - if ((len=ortp_pipe_read(client_sock,tmp,sizeof(tmp)-1))>0){ + if ((len=ortp_pipe_read(client_sock,(uint8_t*)tmp,sizeof(tmp)-1))>0){ ortp_mutex_lock(&prompt_mutex); tmp[len]='\0'; strcpy(received_prompt,tmp); @@ -495,7 +495,7 @@ void linphonec_out(const char *fmt,...){ printf("%s",res); fflush(stdout); if (client_sock!=ORTP_PIPE_INVALID){ - if (ortp_pipe_write(client_sock,res,strlen(res))==-1){ + if (ortp_pipe_write(client_sock,(uint8_t*)res,strlen(res))==-1){ fprintf(stderr,"Fail to send output via pipe: %s",strerror(errno)); } } diff --git a/linphone/console/shell.c b/linphone/console/shell.c index d40ff05889..ea9c9dd67c 100644 --- a/linphone/console/shell.c +++ b/linphone/console/shell.c @@ -91,14 +91,14 @@ static int send_command(const char *command, char *reply, int reply_len, int pri if (print_errors) fprintf(stderr,"ERROR: Failed to connect pipe: %s\n",strerror(errno)); return -1; } - if (ortp_pipe_write(pp,command,strlen(command))==-1){ + if (ortp_pipe_write(pp,(uint8_t*)command,strlen(command))==-1){ if (print_errors) fprintf(stderr,"ERROR: Fail to send command to remote linphonec\n"); ortp_client_pipe_close(pp); return -1; } /*wait for replies */ i=0; - while ((err=ortp_pipe_read(pp,&reply[i],reply_len-i-1))>0){ + while ((err=ortp_pipe_read(pp,(uint8_t*)&reply[i],reply_len-i-1))>0){ i+=err; } reply[i]='\0'; -- GitLab