Changeset 11862


Ignore:
Timestamp:
Feb 9, 2011, 5:16:37 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix gcc compiler warning in libtransmission/makemeta.c: "ignoring return value of ‘read’, declared with attribute warn_unused_result"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r11709 r11862  
    236236        {
    237237            const size_t n_this_pass = (size_t) MIN( ( b->files[fileIndex].size - off ), leftInPiece );
    238             read( fd, bufptr, n_this_pass );
    239             bufptr += n_this_pass;
    240             off += n_this_pass;
    241             leftInPiece -= n_this_pass;
     238            const ssize_t n_read = read( fd, bufptr, n_this_pass );
     239            bufptr += n_read;
     240            off += n_read;
     241            leftInPiece -= n_read;
    242242            if( off == b->files[fileIndex].size )
    243243            {
Note: See TracChangeset for help on using the changeset viewer.