diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
commit | 607678e917a8a274f92445854c58aaaa05b824a8 (patch) | |
tree | a5dfdca19aaab7604737bb285f32470aabc72029 /term_ps.c | |
parent | 6b89b9b2b63e9e25bf91f88bab4163a497bfcca4 (diff) | |
download | mandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.gz mandoc-607678e917a8a274f92445854c58aaaa05b824a8.tar.zst mandoc-607678e917a8a274f92445854c58aaaa05b824a8.zip |
Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.
While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.
Diffstat (limited to 'term_ps.c')
-rw-r--r-- | term_ps.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.80 2015/12/23 20:50:13 schwarze Exp $ */ +/* $Id: term_ps.c,v 1.81 2016/07/19 13:36:13 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -103,10 +103,8 @@ static void ps_growbuf(struct termp *, size_t); static void ps_letter(struct termp *, int); static void ps_pclose(struct termp *); static void ps_pletter(struct termp *, int); -#if __GNUC__ - 0 >= 4 -__attribute__((__format__ (__printf__, 2, 3))) -#endif -static void ps_printf(struct termp *, const char *, ...); +static void ps_printf(struct termp *, const char *, ...) + __attribute__((__format__ (printf, 2, 3))); static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); static void ps_setwidth(struct termp *, int, int); |