summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/simple_pjsua.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-01-01 22:08:21 +0000
committerBenny Prijono <bennylp@teluu.com>2009-01-01 22:08:21 +0000
commite8292035968488eb3a9b61a431afc8c9a39f51d3 (patch)
tree37b6e83a23282b53ed0ab8a602498798bb56c57d /pjsip-apps/src/samples/simple_pjsua.c
parent423bd3b19d5611412da90b87f6989dc89339defa (diff)
Fixed gcc-4.3.2 warnings with the warn_unused_result flag in some APIs
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2408 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/simple_pjsua.c')
-rw-r--r--pjsip-apps/src/samples/simple_pjsua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/simple_pjsua.c b/pjsip-apps/src/samples/simple_pjsua.c
index d606a861..ab2d0174 100644
--- a/pjsip-apps/src/samples/simple_pjsua.c
+++ b/pjsip-apps/src/samples/simple_pjsua.c
@@ -182,7 +182,10 @@ int main(int argc, char *argv[])
char option[10];
puts("Press 'h' to hangup all calls, 'q' to quit");
- fgets(option, sizeof(option), stdin);
+ if (fgets(option, sizeof(option), stdin) == NULL) {
+ puts("EOF while reading stdin, will quit now..");
+ break;
+ }
if (option[0] == 'q')
break;