Changeset 9442


Ignore:
Timestamp:
Oct 30, 2009, 3:53:41 AM (13 years ago)
Author:
charles
Message:

(trunk libT) portability improvements to tr_moveFile()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r9421 r9442  
    13621362    char * buf;
    13631363    struct stat st;
    1364     size_t bytesLeft;
     1364    off_t bytesLeft;
    13651365    size_t buflen;
    13661366
     
    13971397    /* copy the file */
    13981398    in = tr_open_file_for_scanning( oldpath );
    1399     tr_preallocate_file( newpath, bytesLeft );
    14001399    out = tr_open_file_for_writing( newpath );
    14011400    buflen = stat( newpath, &st ) ? 4096 : st.st_blksize;
Note: See TracChangeset for help on using the changeset viewer.