Changeset c66068d for lib/format_legacy.c
- Timestamp:
- 12/03/08 13:24:55 (12 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:
- f66a2dca
- Parents:
- 7157db8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_legacy.c
r29c8666 rc66068d 35 35 #include "libtrace_int.h" 36 36 #include "format_helper.h" 37 #include "wandio.h" 37 38 38 39 #include <sys/stat.h> … … 66 67 union { 67 68 int fd; 68 libtrace_io_t *file;69 io_t *file; 69 70 } input; 70 71 time_t starttime; /* Used for legacy_nzix */ … … 175 176 176 177 static int erf_fin_input(libtrace_t *libtrace) { 177 libtrace_io_close(INPUT.file);178 wandio_destroy(INPUT.file); 178 179 free(libtrace->format_data); 179 180 return 0; … … 237 238 while (1) { 238 239 239 if ((numbytes= libtrace_io_read(INPUT.file,240 if ((numbytes=wandio_read(INPUT.file, 240 241 buffer, 241 242 (size_t)64)) != 64) { … … 279 280 280 281 while (1) { 281 if ((numbytes = libtrace_io_read(INPUT.file, buffer,282 if ((numbytes = wandio_read(INPUT.file, buffer, 282 283 (size_t)68)) != 68) { 283 284 if (numbytes < 0) {
Note: See TracChangeset
for help on using the changeset viewer.