no mode on vtcachealloc

This commit is contained in:
rsc 2005-07-13 17:22:01 +00:00
parent 103335c208
commit 34d0c826bb
3 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ threadmain(int argc, char **argv)
if(verbose) if(verbose)
fprint(2, "cache %d blocks\n", csize); fprint(2, "cache %d blocks\n", csize);
c = vtcachealloc(z, bsize, csize, VtORDWR); c = vtcachealloc(z, bsize, csize);
zcache = c; zcache = c;
/* /*

View file

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

View file

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