Port: use SIZE_MAX as max size_t value
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 21 Jul 2017 15:44:07 +0000 (11:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Aug 2017 19:14:58 +0000 (15:14 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/common/notif-iter/notif-iter.c

index 674d022f0ccc3601a11b8802730ecbe33271bf13..30f9727a10594093266e1dbd90efb9216599bc3a 100644 (file)
@@ -480,7 +480,7 @@ enum bt_ctf_notif_iter_status request_medium_bytes(
 
                /* Restart at the beginning of the new medium buffer */
                notit->buf.at = 0;
-               notit->buf.last_eh_at = -1ULL;
+               notit->buf.last_eh_at = SIZE_MAX;
 
                /* New medium buffer size */
                notit->buf.sz = buffer_sz;
@@ -1798,7 +1798,7 @@ void bt_ctf_notif_iter_reset(struct bt_ctf_notif_iter *notit)
        notit->buf.addr = NULL;
        notit->buf.sz = 0;
        notit->buf.at = 0;
-       notit->buf.last_eh_at = -1ULL;
+       notit->buf.last_eh_at = SIZE_MAX;
        notit->buf.packet_offset = 0;
        notit->state = STATE_INIT;
        notit->cur_content_size = -1;
This page took 0.02568 seconds and 4 git commands to generate.