Changeset dfef05d for lib/fifo.c
- Timestamp:
- 08/12/04 14:34:54 (18 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:
- a4ce365
- Parents:
- 476df56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/fifo.c
r60fc8aa rdfef05d 37 37 #include <string.h> /* bzero */ 38 38 #include "fifo.h" 39 40 #include <stdint.h> 41 #ifdef HAVE_STDDEF_H 42 #include <stddef.h> 43 #else 44 # error "Can't find stddef.h - do you define ptrdiff_t elsewhere" 45 #endif 39 46 40 47 #include <netinet/in.h> … … 205 212 size = MIN( ( fifo->length - fifo->datamap[which]), lenleft); 206 213 memcpy(buffer, 207 (char *)(( int)fifo->base + fifo->datamap[which]),214 (char *)((ptrdiff_t)fifo->base + fifo->datamap[which]), 208 215 size); 209 216 increment_pointer(fifo,which,size); … … 232 239 while (lenleft > 0) { 233 240 size = MIN((fifo->length - fifo->datamap[IN]), lenleft ); 234 memcpy((char *)(( int)fifo->base + fifo->datamap[IN]),241 memcpy((char *)((ptrdiff_t)fifo->base + fifo->datamap[IN]), 235 242 buffer, 236 243 size);
Note: See TracChangeset
for help on using the changeset viewer.