aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti/srv
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-24 20:15:44 +0000
committerrsc <devnull@localhost>2005-07-24 20:15:44 +0000
commit23fb2edb22703ad10aae02295e654b3de68617c5 (patch)
tree68033bae1131e4028eb4a78d4cc028bd2c77839d /src/cmd/venti/srv
parent7ba8aa0c7083415ad69c2f8e591425f3c6ebf952 (diff)
downloadplan9port-23fb2edb22703ad10aae02295e654b3de68617c5.tar.gz
plan9port-23fb2edb22703ad10aae02295e654b3de68617c5.tar.bz2
plan9port-23fb2edb22703ad10aae02295e654b3de68617c5.zip
venti updates
Diffstat (limited to 'src/cmd/venti/srv')
-rw-r--r--src/cmd/venti/srv/buildindex.c1
-rw-r--r--src/cmd/venti/srv/wrarena.c6
2 files changed, 4 insertions, 3 deletions
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++)