From 07494878dc5ae11652cbe221cf9e2a20da94ca96 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 27 Jan 2005 20:36:04 +0000 Subject: remove searching print; check fids in use; handle addr correctly again --- src/cmd/acme/xfid.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cmd/acme/xfid.c') diff --git a/src/cmd/acme/xfid.c b/src/cmd/acme/xfid.c index 13d72957..579f1944 100644 --- a/src/cmd/acme/xfid.c +++ b/src/cmd/acme/xfid.c @@ -103,8 +103,14 @@ xfidopen(Xfid *x) q = FILE(x->f->qid); switch(q){ case QWaddr: + if(w->nopen[q]++ == 0){ + w->addr = range(0, 0); + w->limit = range(-1,-1); + } + break; + case QWdata: + case QWxdata: w->nopen[q]++; - w->limit = range(-1,-1); break; case QWevent: if(w->nopen[q]++ == 0){ -- cgit v1.2.3