Port: handle 'size_t' / 'off_t' on Solaris
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 10 Jul 2017 16:39:38 +0000 (12:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 Jul 2017 19:28:22 +0000 (15:28 -0400)
commit41342c71d95bb3d22a932d19f5f58cecb118efd8
tree014f524d188ec2624c0df6a84458ba1bbe25dce9
parent4f0429da8d2b87a7ca6bf09ab7b5412957b3213c
Port: handle 'size_t' / 'off_t' on Solaris

The size of 'size_t' / 'off_t' vary on some platforms, use C99 portable
macros and print formats to handle them.

Print 'size_t' with '%zu' and use SIZE_MAX as max value.
Print 'off_t' casted to 'intmax_t' with '%jd'.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace.c
lib/ctf-ir/field-types.c
lib/ctf-ir/fields.c
plugins/ctf/common/notif-iter/notif-iter.c
plugins/ctf/fs-src/data-stream-file.c
plugins/ctf/fs-src/file.c
tests/lib/test_graph_topo.c
This page took 0.026107 seconds and 4 git commands to generate.