diff options
author | Russ Cox <rsc@swtch.com> | 2008-10-26 17:02:48 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-10-26 17:02:48 -0400 |
commit | 589ae3a36793c46a8e92682efd2c7d17a98572b3 (patch) | |
tree | fb30477b37823a79890979c103c50d23ae7e76e6 /src/libventi | |
parent | d19769ae98bce9c5893960e92c481a78d62d6be8 (diff) | |
download | plan9port-589ae3a36793c46a8e92682efd2c7d17a98572b3.tar.gz plan9port-589ae3a36793c46a8e92682efd2c7d17a98572b3.tar.bz2 plan9port-589ae3a36793c46a8e92682efd2c7d17a98572b3.zip |
libventi: correct vtfilesetsize bug (reported by Michael Kaminsky)
Diffstat (limited to 'src/libventi')
-rw-r--r-- | src/libventi/cache.c | 2 | ||||
-rw-r--r-- | src/libventi/file.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libventi/cache.c b/src/libventi/cache.c index 65e0e8c4..636a6ea7 100644 --- a/src/libventi/cache.c +++ b/src/libventi/cache.c @@ -312,7 +312,7 @@ vtcachelocal(VtCache *c, u32int addr, int type) sysfatal("vtcachelocal: asked for nonexistent block 0"); if(addr > c->nblock) sysfatal("vtcachelocal: asked for block #%ud; only %d blocks", - addr, c->nblock); + (uint)addr, c->nblock); b = &c->block[addr-1]; if(b->addr == NilBlock || b->iostate != BioLocal) diff --git a/src/libventi/file.c b/src/libventi/file.c index b6887dec..1573a155 100644 --- a/src/libventi/file.c +++ b/src/libventi/file.c @@ -342,7 +342,7 @@ shrinksize(VtFile *r, VtEntry *e, uvlong size) ptrsz *= ppb; isdir = r->dir; - while(depth > 0){ + while(DEPTH(type) > 0){ if(b->addr == NilBlock){ /* not worth copying the block just so we can zero some of it */ vtblockput(b); |