=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.73 retrieving revision 1.75 diff -u -p -r1.73 -r1.75 --- mandoc/html.c 2009/10/30 18:50:11 1.73 +++ mandoc/html.c 2009/10/31 06:10:57 1.75 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.73 2009/10/30 18:50:11 kristaps Exp $ */ +/* $Id: html.c,v 1.75 2009/10/31 06:10:57 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -102,7 +101,7 @@ html_alloc(char *outopts) h = calloc(1, sizeof(struct html)); if (NULL == h) { - fprintf(stderr, "memory exhausted\n"); + perror(NULL); exit(EXIT_FAILURE); } @@ -355,7 +354,7 @@ print_otag(struct html *h, enum htmltag tag, if ( ! (HTML_NOSTACK & htmltags[tag].flags)) { t = malloc(sizeof(struct tag)); if (NULL == t) { - fprintf(stderr, "memory exhausted\n"); + perror(NULL); exit(EXIT_FAILURE); } t->tag = tag;