tvbackup: update to new libventi interface - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e781b7b60ab1ac8d0c6af11c584e2f48a26946c8
DIR parent 4a34106c7d95df617021900f5d52a79f5a502288
HTML Author: Russ Cox <rsc@swtch.com>
Date: Tue, 16 Jun 2009 10:28:13 -0400
vbackup: update to new libventi interface
Diffstat:
M src/cmd/vbackup/vcat.c | 2 +-
M src/cmd/vbackup/vnfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/cmd/vbackup/vcat.c b/src/cmd/vbackup/vcat.c
t@@ -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");
DIR diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c
t@@ -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];