lib/libc/regex: fix build with REDEBUG defined

Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D21760
This commit is contained in:
yuripv 2019-09-24 12:21:01 +00:00
parent 6b0307a0a5
commit 6f79d636c5
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))