mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
fix build errors on linux.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@487 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
2ac9872ae1
commit
1301aa2f7e
2 changed files with 4 additions and 4 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue