Changeset 6d3f99b
- Timestamp:
- 07/28/10 10:59:38 (10 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 2317d78
- Parents:
- f724640
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ior-bzip.c
r66649b4 r6d3f99b 115 115 DATA(io)->err = ERR_ERROR; 116 116 /* Return how much data we managed to read ok */ 117 if (DATA(io)->strm.avail_out != len) {117 if (DATA(io)->strm.avail_out != (uint32_t)len) { 118 118 return len-DATA(io)->strm.avail_out; 119 119 } -
lib/iow-bzip.c
r22a9ccc r6d3f99b 111 111 DATA(iow)->err = ERR_ERROR; 112 112 /* Return how much data we managed to write ok */ 113 if (DATA(iow)->strm.avail_in != len) {113 if (DATA(iow)->strm.avail_in != (uint32_t)len) { 114 114 return len-DATA(iow)->strm.avail_in; 115 115 } -
lib/iow-lzo.c
r7283767 r6d3f99b 59 59 #include <sys/prctl.h> 60 60 #endif 61 62 #include "libtrace.h" 61 63 62 64 enum { … … 270 272 } 271 273 272 iow_t *lzo_wopen(iow_t *child, int compress_level )274 iow_t *lzo_wopen(iow_t *child, int compress_level UNUSED) 273 275 { 274 276 const int opt_filter = 0; … … 340 342 341 343 /* Set up the thread pool -- one thread per core */ 342 DATA(iow)->threads = min(sysconf(_SC_NPROCESSORS_ONLN),use_threads); 344 DATA(iow)->threads = min((uint32_t)sysconf(_SC_NPROCESSORS_ONLN), 345 use_threads); 343 346 DATA(iow)->thread = malloc( 344 347 sizeof(struct lzothread_t) * DATA(iow)->threads); … … 371 374 off_t ret = 0; 372 375 while (len>0) { 373 unsigned int size = len;376 off_t size = len; 374 377 off_t err; 375 378 struct buffer_t outbuf; … … 425 428 space = MAX_BLOCK_SIZE-get_next_thread(iow)->inbuf.offset; 426 429 size = min(space, size); 427 428 430 assert(size>0); 429 431 assert(size <= MAX_BLOCK_SIZE);
Note: See TracChangeset
for help on using the changeset viewer.