projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
refer
/
inv2.c
diff --git
a/usr/src/cmd/refer/inv2.c
b/usr/src/cmd/refer/inv2.c
index
3c366ea
..
a3f9e41
100644
(file)
--- 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();
# 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];
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))
lp = ftell (recf);
while (fgets(line, LINESIZ, inf))
@@
-77,6
+77,7
@@
while (fgets(line, LINESIZ, inf))
ndoc++;
}
*iflong = (lp>=65536L);
ndoc++;
}
*iflong = (lp>=65536L);
+if (sizeof(int)>2) *iflong=1; /* force long on VAX */
fclose(recf);
return(ndoc);
}
fclose(recf);
return(ndoc);
}