diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-12-25 17:53:10 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-12-25 17:53:10 +0000 |
commit | 80647123fe63c15caa93687028a45f9efee5b669 (patch) | |
tree | 6fe6df04e4b2cd506323ad2994b9527dd1ed7193 /troff/n3.c | |
parent | 6db6db4b7f38f7760b90ec861a39b5ccb9df5ba9 (diff) | |
download | src-80647123fe63c15caa93687028a45f9efee5b669.tar.gz src-80647123fe63c15caa93687028a45f9efee5b669.zip |
Import heirloom doctools 2016-11-06vendor/heirloom-doctools/20161106vendor/heirloom-doctools
Notes
Notes:
svn path=/vendor/heirloom-doctools/dist/; revision=310550
svn path=/vendor/heirloom-doctools/20161106/; revision=310551; tag=vendor/heirloom-doctools/20161106
Diffstat (limited to 'troff/n3.c')
-rw-r--r-- | troff/n3.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/troff/n3.c b/troff/n3.c index cf9adf31c6c8..24c33cdf03e0 100644 --- a/troff/n3.c +++ b/troff/n3.c @@ -74,7 +74,7 @@ static struct contab **mhash; /* size must be 128 == the 0177 on line above */ #define blisti(i) (((i)-ENV_BLK*BLK) / BLK) static filep *blist; static int nblist; -static int pagech = '%'; +static size_t pagech = '%'; static int strflg; static tchar *wbuf; @@ -523,7 +523,7 @@ de1: static struct contab * -findmn1(struct contab **hashp, register int i, int als) +findmn1(struct contab **hashp, size_t i, int als) { register struct contab *p; @@ -1864,7 +1864,8 @@ caseindex(void) { int i, j, n, N; struct contab *contp; - int *sp = NULL, as = 0, ns = 0, *np; + size_t *sp = NULL; + int as = 0, ns = 0, *np; tchar c; filep savip; struct numtab *numtp; @@ -2057,7 +2058,7 @@ static struct map { struct map *link; int n; } *map[128]; -static char **had; +static const char **had; static int hadn; static int alcd; @@ -2125,7 +2126,7 @@ casepm(void) tcnt++; if (contab[i].als == 0 && (j = (filep) contab[i].mx) != 0) { k = 1; - while ((j = blist[blisti(j)]) != (unsigned) ~0) { + while ((j = blist[blisti(j)]) != (int) ~0) { k++; } cnt++; |