diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-31 13:50:19 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-31 13:50:19 +0000 |
commit | e487e44b52bbc7bfdb77346cc9a44d1a7c825d2c (patch) | |
tree | 643e3b4494b73a5ef92844c79270118743dd2b96 /man_action.c | |
parent | 1cc03ab30aeb29ce86c06ab8fca7da9056992cef (diff) | |
download | mandoc-e487e44b52bbc7bfdb77346cc9a44d1a7c825d2c.tar.gz |
General clean-ups.
Diffstat (limited to 'man_action.c')
-rw-r--r-- | man_action.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/man_action.c b/man_action.c index 912d2bcc..b14afa41 100644 --- a/man_action.c +++ b/man_action.c @@ -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 |