Commit 1301aa2f authored by smorlat's avatar smorlat

fix build errors on linux.



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@487 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 2ac9872a
......@@ -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));
}
}
......
......@@ -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';
......
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