X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a68924a6e07d69bc4b8d6106b3af0ac5a7490905..7bbfca116a81abb60bfcb48c939dc599ccf380dc:/usr/src/cmd/refer/inv2.c diff --git a/usr/src/cmd/refer/inv2.c b/usr/src/cmd/refer/inv2.c index 3c366eaa91..a3f9e419df 100644 --- a/usr/src/cmd/refer/inv2.c +++ b/usr/src/cmd/refer/inv2.c @@ -11,12 +11,12 @@ newkeys (outf, inf, recf, nhash, fd, iflong) # define LINESIZ 1250 long lp, ftell(); -long ld 0; int ll 0, lt 0; +long ld = 0; int ll = 0, lt = 0; char line[LINESIZ]; char key[30], bkeys[40]; char *p, *s; char *keyv[500]; -int i, nk, ndoc 0, more 0, c; +int i, nk, ndoc = 0, more = 0, c; lp = ftell (recf); while (fgets(line, LINESIZ, inf)) @@ -77,6 +77,7 @@ while (fgets(line, LINESIZ, inf)) ndoc++; } *iflong = (lp>=65536L); +if (sizeof(int)>2) *iflong=1; /* force long on VAX */ fclose(recf); return(ndoc); }