Ignore:
Timestamp:
Jan 1, 2009 10:08:21 PM (15 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/stateful_proxy.c

    r2394 r2408  
    556556             ""); 
    557557 
    558         fgets(line, sizeof(line), stdin); 
     558        if (fgets(line, sizeof(line), stdin) == NULL) { 
     559            puts("EOF while reading stdin, will quit now.."); 
     560            global.quit_flag = PJ_TRUE; 
     561            break; 
     562        } 
    559563 
    560564        if (line[0] == 'q') { 
Note: See TracChangeset for help on using the changeset viewer.