summaryrefslogtreecommitdiffstats
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-25 08:42:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-25 08:42:06 +0000
commit68dc3ab5963210728ca24b386c73b7080e46e4f6 (patch)
tree17c0828871335b8f6e739e5cb99e9fd52300e4cc /mdoc_action.c
parente5f886f2585699404877aba14291673e85615e9b (diff)
downloadmandoc-68dc3ab5963210728ca24b386c73b7080e46e4f6.tar.gz
Updating web-page to be a bit more compact.
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index 6f70e99b..23df587f 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -33,6 +33,7 @@ enum mwarn {
enum merr {
ETOOLONG,
EMALLOC,
+ EUTSNAME,
ENUMFMT
};
@@ -272,6 +273,9 @@ perr(struct mdoc *m, int line, int pos, enum merr type)
case (ETOOLONG):
p = "argument text too long";
break;
+ case (EUTSNAME):
+ p = "utsname";
+ break;
case (EMALLOC):
p = "memory exhausted";
break;
@@ -505,7 +509,7 @@ post_os(POST_ARGS)
if (0 == buf[0]) {
if (-1 == uname(&utsname))
- return(mdoc_err(m, "utsname"));
+ return(verr(m, EUTSNAME));
if (strlcat(buf, utsname.sysname, 64) >= 64)
return(verr(m, ETOOLONG));
if (strlcat(buf, " ", 64) >= 64)