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/pjmedia/src/test/rtp_test.c

    r2394 r2408  
    3333    pjmedia_rtp_session_init (&rtp, 4, 0x12345678); 
    3434    pjmedia_rtp_encode_rtp (&rtp, 4, 0, 0, 160, &rtphdr, &hdrlen); 
    35     fwrite (rtphdr, hdrlen, 1, fhnd); 
     35    if (fwrite (rtphdr, hdrlen, 1, fhnd) != 1) { 
     36        fclose(fhnd); 
     37        return -1; 
     38    } 
    3639    fclose(fhnd); 
    3740    return 0; 
Note: See TracChangeset for help on using the changeset viewer.