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
Bell 32V development
[unix-history]
/
usr
/
src
/
cmd
/
refer
/
inv6.c
diff --git
a/usr/src/cmd/refer/inv6.c
b/usr/src/cmd/refer/inv6.c
index
1d48b28
..
99dd21f
100644
(file)
--- a/
usr/src/cmd/refer/inv6.c
+++ b/
usr/src/cmd/refer/inv6.c
@@
-6,15
+6,15
@@
whash(ft, fa, fb, nhash, iflong, ptotct, phused)
long *ptotct;
{
char line[100];
long *ptotct;
{
char line[100];
-int hash
0, hused
0;
-long totct 0L;
-int ct 0;
+int hash
= 0, hused =
0;
+long totct
=
0L;
+int ct
=
0;
long point;
long point;
-long opoint -1;
+long opoint
=
-1;
int m;
int k; long lp;
long *hpt;
int m;
int k; long lp;
long *hpt;
-int *hfreq NULL;
+int *hfreq
=
NULL;
hpt = calloc (nhash+1, sizeof(*hpt));
_assert (hpt != NULL);
hpt = calloc (nhash+1, sizeof(*hpt));
_assert (hpt != NULL);
@@
-64,18
+64,10
@@
putl(ll, f)
long ll;
FILE *f;
{
long ll;
FILE *f;
{
-int *x;
-x = ≪
-putw(x[0], f);
-putw(x[1], f);
+putw(ll, f);
}
long getl(f)
FILE *f;
{
}
long getl(f)
FILE *f;
{
-int x[2];
-int *ll;
-x[0] = getw(f);
-x[1] = getw(f);
-ll = x;
-return (*ll);
+return(getw(f));
}
}