-/* $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>
*
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)
static int
pre_bl(PRE_ARGS)
{
- int type, err, i;
+ int type, i;
struct mdoc_arg *argv;
size_t argc;
/* 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) {