From 23fb2edb22703ad10aae02295e654b3de68617c5 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 24 Jul 2005 20:15:44 +0000 Subject: venti updates --- src/cmd/venti/srv/buildindex.c | 1 + src/cmd/venti/srv/wrarena.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/cmd/venti/srv') diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c index 4cf60293..640b1906 100644 --- a/src/cmd/venti/srv/buildindex.c +++ b/src/cmd/venti/srv/buildindex.c @@ -119,6 +119,7 @@ threadmain(int argc, char *argv[]) zero = 1; bcmem = 0; + ventifmtinstall(); ARGBEGIN{ case 'B': bcmem = unittoull(ARGF()); diff --git a/src/cmd/venti/srv/wrarena.c b/src/cmd/venti/srv/wrarena.c index 4b8358ca..7563faef 100644 --- a/src/cmd/venti/srv/wrarena.c +++ b/src/cmd/venti/srv/wrarena.c @@ -190,14 +190,14 @@ threadmain(int argc, char *argv[]) if(arena == nil) sysfatal("initarena: %r"); - if(host && strcmp(host, "/dev/null") != 0){ + z = nil; + if(host==nil || strcmp(host, "/dev/null") != 0){ z = vtdial(host); if(z == nil) sysfatal("could not connect to server: %r"); if(vtconnect(z) < 0) sysfatal("vtconnect: %r"); - }else - z = nil; + } c = chancreate(sizeof(ZClump), 0); for(i=0; i<12; i++) -- cgit v1.2.3