From 627cbe00c40b4273dabb299cdd222cf8e7b25bf0 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 9 Oct 2011 22:14:17 +0000 Subject: [PATCH] pass lint on i386 --- lib/libc/regex/regcomp.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 637578a59734..d1546afe8086 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1,4 +1,4 @@ -/* $NetBSD: regcomp.c,v 1.30 2011/10/09 18:23:00 christos Exp $ */ +/* $NetBSD: regcomp.c,v 1.31 2011/10/09 22:14:17 christos Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -76,7 +76,7 @@ #if 0 static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94"; #else -__RCSID("$NetBSD: regcomp.c,v 1.30 2011/10/09 18:23:00 christos Exp $"); +__RCSID("$NetBSD: regcomp.c,v 1.31 2011/10/09 22:14:17 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -145,7 +145,7 @@ static void repeat(struct parse *p, sopno start, int from, int to, size_t reclim static int seterr(struct parse *p, int e); static cset *allocset(struct parse *p); static void freeset(struct parse *p, cset *cs); -static int freezeset(struct parse *p, cset *cs); +static sopno freezeset(struct parse *p, cset *cs); static int firstch(struct parse *p, cset *cs); static int nch(struct parse *p, cset *cs); static void mcadd(struct parse *p, cset *cs, const char *cp); @@ -619,8 +619,7 @@ p_simp_re( int c; int count; int count2; - sopno pos; - int i; + sopno pos, i; sopno subno; # define BACKSL (1<g->ncategories++; } @@ -1316,7 +1315,7 @@ freeset( * is done using addition rather than xor -- all ASCII [aA] sets xor to * the same value! */ -static int /* set number */ +static sopno /* set number */ freezeset( struct parse *p, cset *cs) @@ -1350,7 +1349,7 @@ freezeset( cs = cs2; } - return((int)(cs - p->g->sets)); + return (sopno)(cs - p->g->sets); } /*