aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/conv.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-12 18:28:14 +0000
committerrsc <devnull@localhost>2004-03-12 18:28:14 +0000
commit9ffbb5adcaeec878d3b6db0f8b1f654e839b4689 (patch)
treebfd7abf95e87e3b97f3ae2e0ae3bf59c30839cc7 /src/cmd/venti/conv.c
parent7c5190d2c854128fb607289e9d83379e522c7090 (diff)
downloadplan9port-9ffbb5adcaeec878d3b6db0f8b1f654e839b4689.tar.gz
plan9port-9ffbb5adcaeec878d3b6db0f8b1f654e839b4689.tar.bz2
plan9port-9ffbb5adcaeec878d3b6db0f8b1f654e839b4689.zip
Checkpoint.
Add disk caching code and first draft of fractional index.
Diffstat (limited to 'src/cmd/venti/conv.c')
-rw-r--r--src/cmd/venti/conv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/venti/conv.c b/src/cmd/venti/conv.c
index ae89baa7..4688b076 100644
--- a/src/cmd/venti/conv.c
+++ b/src/cmd/venti/conv.c
@@ -488,7 +488,7 @@ void
unpackibucket(IBucket *b, u8int *buf)
{
b->n = U16GET(buf);
- b->next = U32GET(&buf[U16Size]);
+ b->depth = U32GET(&buf[U16Size]);
b->data = buf + IBucketSize;
}
@@ -496,5 +496,5 @@ void
packibucket(IBucket *b, u8int *buf)
{
U16PUT(buf, b->n);
- U32PUT(&buf[U16Size], b->next);
+ U32PUT(&buf[U16Size], b->depth);
}