Use uint64_t for packet_map_len
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Apr 2013 13:15:15 +0000 (09:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Apr 2013 13:15:15 +0000 (09:15 -0400)
packet_map_len is in bits, and we should use uint64_t to represent bits,
rather than size_t.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/ctf.c

index 786ba6fb120a9758570e74b1a0aa2ee50df06a4c..4e4aabff9ec31d948b9ce6397b202eae9d8e99dd 100644 (file)
@@ -1302,10 +1302,10 @@ int create_stream_one_packet_index(struct ctf_stream_pos *pos,
 {
        struct packet_index packet_index;
        struct ctf_stream_declaration *stream;
-       int len_index;
        uint64_t stream_id = 0;
+       uint64_t packet_map_len = DEFAULT_HEADER_LEN, tmp_map_len;
        int first_packet = 0;
-       size_t packet_map_len = DEFAULT_HEADER_LEN, tmp_map_len;
+       int len_index;
        int ret;
 
 begin:
This page took 0.02565 seconds and 4 git commands to generate.