summaryrefslogtreecommitdiffstatshomepage
path: root/man_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-31 13:50:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-31 13:50:19 +0000
commit4cd2606cca8b6f78a9d90bec6f4fa0c45c2dcd0f (patch)
tree428f5d4c3b3e002a94712ec6afcebb59424910b9 /man_action.c
parent3a15d29d3fd3d564da6a32a0ac9b49872b7d523c (diff)
downloadmandoc-4cd2606cca8b6f78a9d90bec6f4fa0c45c2dcd0f.tar.gz
mandoc-4cd2606cca8b6f78a9d90bec6f4fa0c45c2dcd0f.tar.zst
mandoc-4cd2606cca8b6f78a9d90bec6f4fa0c45c2dcd0f.zip
General clean-ups.
Diffstat (limited to 'man_action.c')
-rw-r--r--man_action.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/man_action.c b/man_action.c
index 7f4f7789..ca4139c2 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.6 2009/03/27 14:56:15 kristaps Exp $ */
+/* $Id: man_action.c,v 1.7 2009/03/31 13:50:19 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -19,9 +19,7 @@
#include <sys/utsname.h>
#include <assert.h>
-#include <err.h>
#include <errno.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -111,7 +109,8 @@ post_TH(struct man *m)
assert(n);
if (NULL == (m->meta.title = strdup(n->string)))
- return(man_verr(m, n->line, n->pos, "malloc"));
+ return(man_verr(m, n->line, n->pos,
+ "memory exhausted"));
/* TITLE ->MSEC<- DATE SOURCE VOL */
@@ -139,13 +138,15 @@ post_TH(struct man *m)
if (n && (n = n->next))
if (NULL == (m->meta.source = strdup(n->string)))
- return(man_verr(m, n->line, n->pos, "malloc"));
+ return(man_verr(m, n->line, n->pos,
+ "memory exhausted"));
/* TITLE MSEC DATE SOURCE ->VOL<- */
if (n && (n = n->next))
if (NULL == (m->meta.vol = strdup(n->string)))
- return(man_verr(m, n->line, n->pos, "malloc"));
+ return(man_verr(m, n->line, n->pos,
+ "memory exhausted"));
/*
* The end document shouldn't have the prologue macros as part