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 18:26:27 +0000 (14:26 -0400)
commit1974687e6b7a08d8383a4a5c75265d0ed3b8c5c9
treef5c1f2d3ca1797e8ee742cb9ec6d7bfecb618e1b
parent0550901200156da07befb55b3aa23e0180d959e2
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.025369 seconds and 4 git commands to generate.