diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
commit | 74accf0fc23a61d1716812e017394125f5257020 (patch) | |
tree | 78d7edfbcd8c74701fc68788b3b58538353c90c8 /mdoc.c | |
parent | 6f9d9cf4d38fa9a821a61f50e3ee7caa2306cdb5 (diff) | |
download | mandoc-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 'mdoc.c')
-rw-r--r-- | mdoc.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.50 2009/03/02 17:14:46 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.51 2009/03/05 13:12:12 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -220,7 +220,8 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(1); i = 1; - while (buf[i] && ! isspace((int)buf[i]) && i < (int)sizeof(tmp)) + while (buf[i] && ! isspace((u_char)buf[i]) && + i < (int)sizeof(tmp)) i++; if (i == (int)sizeof(tmp)) { @@ -241,7 +242,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(mdoc_perr(mdoc, line, 1, "unknown macro")); } - while (buf[i] && isspace((int)buf[i])) + while (buf[i] && isspace((u_char)buf[i])) i++; if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) { |