libctf: explicitly cast more size_t types used in printf()s
authorNick Alcock <nick.alcock@oracle.com>
Thu, 6 Jun 2019 12:59:56 +0000 (13:59 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 7 Jun 2019 12:46:38 +0000 (13:46 +0100)
commit595a4d439bc5976d5bdf61da6d44337b3995d967
tree209d7dac14e1b2cecbcfd7de8581da1fc81a1d20
parentf5e73be11b24b6c4b7ecec5f762784c4bb40ec18
libctf: explicitly cast more size_t types used in printf()s

Unsigned long will always be adequate (the only cases involving an
ssize_t are cases in which no error can be generated, or in which
negative output would require a seriously corrupted file: the latter has
been rewritten on a branch in any case).

Tested on x86_64-pc-linux-gnu, x86_64-unknown-freebsd12.0,
sparc-sun-solaris2.11, i686-pc-cygwin, i686-w64-mingw32.

libctf/
* ctf-dump.c (ctf_dump_format_type): Cast size_t's used in printf()s.
(ctf_dump_objts): Likewise.
(ctf_dump_funcs): Likewise.
(ctf_dump_member): Likewise.
(ctf_dump_str): Likewise.
libctf/ChangeLog
libctf/ctf-dump.c
This page took 0.02473 seconds and 4 git commands to generate.