lib/libc/regex: fix build with REDEBUG defined

Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D21760
This commit is contained in:
Yuri Pankov 2019-09-24 12:21:01 +00:00
parent 5d85e12f44
commit 3c78771400
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352651
2 changed files with 1 additions and 7 deletions

View File

@ -1068,7 +1068,7 @@ print(struct match *m,
fprintf(d, " %s", pchar(ch));
for (i = 0; i < g->nstates; i++)
if (ISSET(st, i)) {
fprintf(d, "%s%d", (first) ? "\t" : ", ", i);
fprintf(d, "%s%lu", (first) ? "\t" : ", ", i);
first = 0;
}
fprintf(d, "\n");

View File

@ -196,12 +196,6 @@ static char nuls[10]; /* place to point scanner in event of error */
#define THERETHERE() (p->slen - 2)
#define DROP(n) (p->slen -= (n))
#ifndef NDEBUG
static int never = 0; /* for use in asserts; shuts lint up */
#else
#define never 0 /* some <assert.h>s have bugs too */
#endif
/* Macro used by computejump()/computematchjump() */
#define MIN(a,b) ((a)<(b)?(a):(b))