Changeset 10624
- Timestamp:
- Dec 11, 2006, 12:13:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/src/IOBufferOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/src/IOBufferOps.c
r8385 r10624 43 43 Nread = read (fd, &buffer[0].buffer[buffer[0].Nbuffer], buffer[0].Nblock); 44 44 45 /* on success, increase the block size for the next read */ 46 45 47 if (Nread >= 0) { 46 48 buffer[0].Nbuffer += Nread; 49 buffer[0].Nblock *= 2; 50 buffer[0].Nblock = MAX (buffer[0].Nblock, 0x10000); 47 51 return (Nread); 48 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
