Changeset 4bd8a5b for lib/format_legacy.c
- Timestamp:
- 12/24/06 17:05:29 (14 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:
- 870e501
- Parents:
- 778d459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_legacy.c
rcab58c5 r4bd8a5b 116 116 if (!packet->buffer || packet->buf_control == TRACE_CTRL_EXTERNAL) { 117 117 packet->buf_control = TRACE_CTRL_PACKET; 118 packet->buffer=malloc( LIBTRACE_PACKET_BUFSIZE);118 packet->buffer=malloc((size_t)LIBTRACE_PACKET_BUFSIZE); 119 119 } 120 120 buffer = packet->buffer; … … 136 136 if ((numbytes=libtrace_io_read(INPUT.file, 137 137 buffer, 138 64)) != 64) {138 (size_t)64)) != 64) { 139 139 if (numbytes!=0) { 140 140 trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata);
Note: See TracChangeset
for help on using the changeset viewer.