=================================================================== RCS file: /cvs/mandoc/term_ps.c,v retrieving revision 1.78 retrieving revision 1.81 diff -u -p -r1.78 -r1.81 --- mandoc/term_ps.c 2015/10/13 22:59:54 1.78 +++ mandoc/term_ps.c 2016/07/19 13:36:13 1.81 @@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.78 2015/10/13 22:59:54 schwarze Exp $ */ +/* $Id: term_ps.c,v 1.81 2016/07/19 13:36:13 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -20,7 +20,9 @@ #include #include +#if HAVE_ERR #include +#endif #include #include #include @@ -101,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); @@ -642,10 +642,8 @@ pspdf_free(void *arg) p = (struct termp *)arg; - if (p->ps->psmarg) - free(p->ps->psmarg); - if (p->ps->pdfobjs) - free(p->ps->pdfobjs); + free(p->ps->psmarg); + free(p->ps->pdfobjs); free(p->ps); term_free(p);