summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-05 13:12:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-05 13:12:12 +0000
commit74accf0fc23a61d1716812e017394125f5257020 (patch)
tree78d7edfbcd8c74701fc68788b3b58538353c90c8 /term.c
parent6f9d9cf4d38fa9a821a61f50e3ee7caa2306cdb5 (diff)
downloadmandoc-74accf0fc23a61d1716812e017394125f5257020.tar.gz
mandoc-74accf0fc23a61d1716812e017394125f5257020.tar.zst
mandoc-74accf0fc23a61d1716812e017394125f5257020.zip
Cleaned up ctype functions (netbsd).
Fixed .Ex/.Rv -std usage. Made Ar provide default value.
Diffstat (limited to 'term.c')
-rw-r--r--term.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/term.c b/term.c
index 76fced1e..bc44fc61 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.41 2009/03/04 14:41:40 kristaps Exp $ */
+/* $Id: term.c,v 1.42 2009/03/05 13:12:12 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -295,7 +295,7 @@ arg_width(const struct mdoc_arg *arg)
assert(len > 0);
for (i = 0; i < len - 1; i++)
- if ( ! isdigit((int)(*arg->value)[i]))
+ if ( ! isdigit((u_char)(*arg->value)[i]))
break;
if (i == len - 1) {
@@ -693,10 +693,6 @@ termp_ar_pre(DECL_ARGS)
{
TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_CMD_ARG]);
- if (NULL == node->child) {
- word(p, "file");
- word(p, "...");
- }
return(1);
}