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

    r2394 r2408  
    128128 
    129129        for (i=0; i<8000/SAMPLES_PER_FRAME; ++i) { 
     130            int count; 
    130131            pjmedia_port_get_frame(port, &frm); 
    131             fwrite(buf, SAMPLES_PER_FRAME, 2, f); 
     132            count = fwrite(buf, SAMPLES_PER_FRAME, 2, f); 
     133            if (count != 2) 
     134                break; 
    132135        } 
    133136 
Note: See TracChangeset for help on using the changeset viewer.