Ignore:
Timestamp:
Jan 1, 2009 10:08:21 PM (16 years ago)
Author:
bennylp
Message:

Fixed gcc-4.3.2 warnings with the warn_unused_result flag in some APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simple_pjsua.c

    r2394 r2408  
    183183 
    184184        puts("Press 'h' to hangup all calls, 'q' to quit"); 
    185         fgets(option, sizeof(option), stdin); 
     185        if (fgets(option, sizeof(option), stdin) == NULL) { 
     186            puts("EOF while reading stdin, will quit now.."); 
     187            break; 
     188        } 
    186189 
    187190        if (option[0] == 'q') 
Note: See TracChangeset for help on using the changeset viewer.