yat2m: Silence lint warnings and fix a printf format bug.
authorWerner Koch <wk@gnupg.org>
Sat, 25 Jun 2016 08:41:21 +0000 (10:41 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 25 Jun 2016 08:41:21 +0000 (10:41 +0200)
commit22b9bea1c3d0e944aa539a87d79e47d92ca5309f
tree1b5f5809e98c4d3c2ba1ae246998f50202847553
parent7bca3be65e510eda40572327b87922834ebe07eb
yat2m: Silence lint warnings and fix a printf format bug.

* doc/yat2m.c (ATTR_PRINTF, ATTR_NR_PRINTF, ATTR_MALLOC): New.
(die, err, inf, xmalloc, xcalloc): New prototypes with attributes.
(get_section_buffer): Take care of !N_SECTIONS.
(proc_texi_cmd): Cast precision format arg.
(proc_texi_buffer): Do not set IN_CMD when not used afterwards.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/yat2m.c