diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 18:53:08 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 18:53:08 +0000 |
commit | b9ac7e789aa2c1bf358e1d967a0b87ef2322744b (patch) | |
tree | 6f2ed9ac3c4097c3798ad30f4d5a77841743257a /mdoc_html.c | |
parent | 314f1f1e699245ecd79579db7c40c4fa85b0d484 (diff) | |
download | mandoc-b9ac7e789aa2c1bf358e1d967a0b87ef2322744b.tar.gz mandoc-b9ac7e789aa2c1bf358e1d967a0b87ef2322744b.tar.zst mandoc-b9ac7e789aa2c1bf358e1d967a0b87ef2322744b.zip |
More lint fixes.
Removed err.h from inclusions (less main.c--still in progress).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 5a314fa1..186d9a5d 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.42 2009/10/28 08:00:18 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.43 2009/10/30 18:53:08 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -19,7 +19,6 @@ #include <assert.h> #include <ctype.h> -#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1115,8 +1114,10 @@ mdoc_bl_pre(MDOC_ARGS) return(1); ord = malloc(sizeof(struct ord)); - if (NULL == ord) - err(EXIT_FAILURE, "malloc"); + if (NULL == ord) { + fprintf(stderr, "memory exhausted\n"); + exit(EXIT_FAILURE); + } ord->cookie = n; ord->pos = 1; ord->next = h->ords.head; |