vbackup: update to new libventi interface

This commit is contained in:
Russ Cox 2009-06-16 10:28:13 -04:00
parent 4a34106c7d
commit e781b7b60a
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ threadmain(int argc, char **argv)
sysfatal("vtdial: %r");
if(vtconnect(z) < 0)
sysfatal("vtconnect: %r");
if((c = vtcachealloc(z, 16384, 32)) == nil)
if((c = vtcachealloc(z, 16384*32)) == nil)
sysfatal("vtcache: %r");
if((disk = diskopenventi(c, score)) == nil)
sysfatal("diskopenventi: %r");

View file

@ -143,7 +143,7 @@ threadmain(int argc, char **argv)
sysfatal("vtdial: %r");
if(vtconnect(z) < 0)
sysfatal("vtconnect: %r");
if((vcache = vtcachealloc(z, blocksize, cachesize)) == nil)
if((vcache = vtcachealloc(z, blocksize*cachesize)) == nil)
sysfatal("vtcache: %r");
configfile = argv[0];