diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-31 06:10:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-31 06:10:57 +0000 |
commit | fecec57074220c2494d1098ec3e1fa90362a1e44 (patch) | |
tree | 496a201f25ed00e58a64f0ead626620bb1c08a5e /html.c | |
parent | 9b34de59b184407dc87af383dc2b149c837e3b8b (diff) | |
download | mandoc-fecec57074220c2494d1098ec3e1fa90362a1e44.tar.gz |
Using perror() instead of fprintf for failure from library functions.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,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); } @@ -354,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; |