aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-06-16 10:28:13 -0400
committerRuss Cox <rsc@swtch.com>2009-06-16 10:28:13 -0400
commite781b7b60ab1ac8d0c6af11c584e2f48a26946c8 (patch)
treed75b78b21e6b80fc19173148617c65ebf1a201aa /src/cmd/vbackup
parent4a34106c7d95df617021900f5d52a79f5a502288 (diff)
downloadplan9port-e781b7b60ab1ac8d0c6af11c584e2f48a26946c8.tar.gz
plan9port-e781b7b60ab1ac8d0c6af11c584e2f48a26946c8.tar.bz2
plan9port-e781b7b60ab1ac8d0c6af11c584e2f48a26946c8.zip
vbackup: update to new libventi interface
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/vcat.c2
-rw-r--r--src/cmd/vbackup/vnfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/vbackup/vcat.c b/src/cmd/vbackup/vcat.c
index 0346963b..e30f78f8 100644
--- a/src/cmd/vbackup/vcat.c
+++ b/src/cmd/vbackup/vcat.c
@@ -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");
diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c
index 563cb270..cb9fdbf5 100644
--- a/src/cmd/vbackup/vnfs.c
+++ b/src/cmd/vbackup/vnfs.c
@@ -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];