Changeset 3043


Ignore:
Timestamp:
Jan 4, 2010 2:20:22 PM (15 years ago)
Author:
bennylp
Message:

Misc PJLIB fix (#1003): fix gcc warning about unused return value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/icedemo.c

    r3028 r3043  
    262262static void log_func(int level, const char *data, int len) 
    263263{ 
    264     if (icedemo.log_fhnd) 
    265         fwrite(data, len, 1, icedemo.log_fhnd); 
    266264    pj_log_write(level, data, len); 
     265    if (icedemo.log_fhnd) { 
     266        if (fwrite(data, len, 1, icedemo.log_fhnd) != 1) 
     267            return; 
     268    } 
    267269} 
    268270 
Note: See TracChangeset for help on using the changeset viewer.