summaryrefslogtreecommitdiffstatshomepage
path: root/validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 12:32:50 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-02-25 12:32:50 +0000
commit0ed26b313243fe8d50014289e52f043f61782286 (patch)
treea20f7650e09d94b0d4db137fe406836d9ec3fc58 /validate.c
parenta017287dafe633c9f23e9990989b55dea239344c (diff)
downloadmandoc-0ed26b313243fe8d50014289e52f043f61782286.tar.gz
mandoc-0ed26b313243fe8d50014289e52f043f61782286.tar.zst
mandoc-0ed26b313243fe8d50014289e52f043f61782286.zip
NetBSD Lintified.
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/validate.c b/validate.c
index 7b109965..72a5dea0 100644
--- a/validate.c
+++ b/validate.c
@@ -1,4 +1,4 @@
-/* $Id: validate.c,v 1.59 2009/02/25 11:37:05 kristaps Exp $ */
+/* $Id: validate.c,v 1.60 2009/02/25 12:32:50 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -481,7 +481,7 @@ check_text(struct mdoc *mdoc, size_t line, size_t pos, const char *p)
size_t c;
for ( ; *p; p++) {
- if ( ! isprint(*p) && '\t' != *p)
+ if ( ! isprint((int)*p) && '\t' != *p)
return(mdoc_perr(mdoc, line, pos,
"invalid characters"));
if ('\\' != *p)
@@ -540,7 +540,7 @@ pre_display(PRE_ARGS)
static int
pre_bl(PRE_ARGS)
{
- int type, err, i;
+ int type, i;
struct mdoc_arg *argv;
size_t argc;
@@ -552,7 +552,7 @@ pre_bl(PRE_ARGS)
/* Make sure that only one type of list is specified. */
/* LINTED */
- for (i = 0, type = err = 0; i < (int)argc; i++) {
+ for (i = 0, type = 0; i < (int)argc; i++) {
argv = &n->data.block.argv[i];
switch (argv->arg) {