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/pjsua/pjsua_app.c

    r2394 r2408  
    27512751 
    27522752    printf("%s (empty to cancel): ", title); fflush(stdout); 
    2753     fgets(buf, len, stdin); 
     2753    if (fgets(buf, len, stdin) == NULL) 
     2754        return PJ_FALSE; 
    27542755 
    27552756    /* Remove trailing newlines. */ 
     
    27952796 
    27962797    fflush(stdout); 
    2797     fgets(buf, len, stdin); 
     2798    if (fgets(buf, len, stdin) == NULL) 
     2799        return; 
    27982800    len = strlen(buf); 
    27992801 
     
    30243026 
    30253027    printf("Codec name (\"*\" for all) and priority: "); 
    3026     fgets(input, sizeof(input), stdin); 
     3028    if (fgets(input, sizeof(input), stdin) == NULL) 
     3029        return; 
    30273030    if (input[0]=='\r' || input[0]=='\n') { 
    30283031        puts("Done"); 
Note: See TracChangeset for help on using the changeset viewer.