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

    r2394 r2408  
    222222             ""); 
    223223 
    224         fgets(line, sizeof(line), stdin); 
     224        if (fgets(line, sizeof(line), stdin) == NULL) { 
     225            puts("EOF while reading stdin, will quit now.."); 
     226            global.quit_flag = PJ_TRUE; 
     227            break; 
     228        } 
    225229 
    226230        if (line[0] == 'q') { 
Note: See TracChangeset for help on using the changeset viewer.