From 85e908d626f50934f291b1fbeea2afbb4f205cbd Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 20 Jan 2009 13:49:36 +0000 Subject: Lint- and NetBSD-compiler checks. --- mdoc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index a8ca26c5..2e05c4a8 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.41 2009/01/20 13:44:05 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.42 2009/01/20 13:49:36 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -318,7 +318,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(1); i = 1; - while (buf[i] && ! isspace(buf[i]) && i < (int)sizeof(tmp)) + while (buf[i] && ! isspace((int)buf[i]) && i < (int)sizeof(tmp)) i++; if (i == (int)sizeof(tmp)) { @@ -339,7 +339,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) return(mdoc_perr(mdoc, line, 1, "unknown macro")); } - while (buf[i] && isspace(buf[i])) + while (buf[i] && isspace((int)buf[i])) i++; if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) { -- cgit v1.2.3