struct ctf_packet_index ctf_index;
struct ctf_packet_index_file_hdr index_hdr;
struct packet_index index;
- int index_read;
int ret = 0;
int first_packet = 1;
size_t len;
goto error;
}
- while ((index_read = fread(&ctf_index, index_hdr.packet_index_len, 1,
- pos->index_fp)) == 1) {
+ while (fread(&ctf_index, index_hdr.packet_index_len, 1,
+ pos->index_fp) == 1) {
uint64_t stream_id;
memset(&index, 0, sizeof(index));
pos->flags = MAP_PRIVATE;
pos->parent.rw_table = read_dispatch_table;
pos->parent.event_cb = ctf_read_event;
+ pos->priv = mmap_info->priv;
}
static