diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-25 08:42:06 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-25 08:42:06 +0000 |
commit | 68dc3ab5963210728ca24b386c73b7080e46e4f6 (patch) | |
tree | 17c0828871335b8f6e739e5cb99e9fd52300e4cc /mdoc_action.c | |
parent | e5f886f2585699404877aba14291673e85615e9b (diff) | |
download | mandoc-68dc3ab5963210728ca24b386c73b7080e46e4f6.tar.gz |
Updating web-page to be a bit more compact.
Diffstat (limited to 'mdoc_action.c')
-rw-r--r-- | mdoc_action.c | 6 |
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) |