From 4c2c12fafa6b6c360c0ac611855272541073e86a Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 22 Sep 2015 21:37:34 +0200 Subject: [PATCH] fix compilation errors --- coreapi/help/realtimetext_sender.c | 9 +++++++-- mediastreamer2 | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/coreapi/help/realtimetext_sender.c b/coreapi/help/realtimetext_sender.c index 9ab25545b..8995196f0 100644 --- a/coreapi/help/realtimetext_sender.c +++ b/coreapi/help/realtimetext_sender.c @@ -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; diff --git a/mediastreamer2 b/mediastreamer2 index 8799e7b89..0780ed678 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 8799e7b89e11d46aebfec8e948de3bf8e754e2ec +Subproject commit 0780ed6788e5224617b62a34b190a1a7197cd50f