diff --git a/linphone/console/linphonec.c b/linphone/console/linphonec.c index 153518ff5dd72e3a36046209205c1bda7049a4b9..f9295d4f7ce625494fbe2442eb06d2f74036007c 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 d40ff0588949963ae9c10b90ad0a93f3885b1538..ea9c9dd67c47f9c95326b3259db32d973cf4fc03 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';