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/siprtp.c

    r2394 r2408  
    18631863 
    18641864    printf("%s (empty to cancel): ", title); fflush(stdout); 
    1865     fgets(buf, len, stdin); 
     1865    if (fgets(buf, len, stdin) == NULL) 
     1866        return PJ_FALSE; 
    18661867 
    18671868    /* Remove trailing newlines. */ 
     
    18991900    for (;;) { 
    19001901        printf(">>> "); fflush(stdout); 
    1901         fgets(input1, sizeof(input1), stdin); 
     1902        if (fgets(input1, sizeof(input1), stdin) == NULL) { 
     1903            puts("EOF while reading stdin, will quit now.."); 
     1904            break; 
     1905        } 
    19021906 
    19031907        switch (input1[0]) { 
     
    20212025 
    20222026    if (log_file) { 
    2023         fwrite(buffer, len, 1, log_file); 
     2027        int count = fwrite(buffer, len, 1, log_file); 
     2028        PJ_UNUSED_ARG(count); 
    20242029        fflush(log_file); 
    20252030    } 
Note: See TracChangeset for help on using the changeset viewer.