fix compilation errors

This commit is contained in:
Simon Morlat 2015-09-22 21:37:34 +02:00
parent 461876a9a3
commit 4c2c12fafa
2 changed files with 8 additions and 3 deletions

View file

@ -112,9 +112,14 @@ int main(int argc, char *argv[]){
/* main loop for sending message and doing background linphonecore work: */
while(running){
char character;
system ("/bin/stty raw"); /*to disable terminal buffering*/
/*to disable terminal buffering*/
if (system ("/bin/stty raw") == -1){
ms_error("/bin/stty error");
}
character = getchar();
system ("/bin/stty cooked");
if (system("/bin/stty cooked") == -1){
ms_error("/bin/stty error");
}
if (character==0x03) {/*CTRL C*/
running=0;
break;

@ -1 +1 @@
Subproject commit 8799e7b89e11d46aebfec8e948de3bf8e754e2ec
Subproject commit 0780ed6788e5224617b62a34b190a1a7197cd50f