Changeset 1681


Ignore:
Timestamp:
01/06/11 14:08:01 (2 years ago)
Author:
salcock
Message:
  • Fixed issue with corruption of the length value when performing threaded reads with compiler optimizations turned on - something bad is probably still happening somewhere but this seems to prevent it from breaking anything important :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ior-thread.c

    r1647 r1681  
    192192} 
    193193 
    194 static off_t thread_read(io_t *state, void *buffer, off_t len) 
     194static off_t thread_read(io_t *state, void *buffer, const off_t to_read) 
    195195{ 
    196196        int slice; 
    197197        int copied=0; 
    198198        int newbuffer; 
     199        int len = to_read; 
    199200 
    200201        while(len>0) { 
Note: See TracChangeset for help on using the changeset viewer.