summaryrefslogtreecommitdiff
path: root/emu/port/uqid.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2009-03-25 16:37:32 +0000
committerCharles.Forsyth <devnull@localhost>2009-03-25 16:37:32 +0000
commite0a2b8d82a5521d9391ca8c6f055777954c76c2f (patch)
treebed98eebad567e161db651e8a173f1a819169292 /emu/port/uqid.c
parentd8150d92150b08ade63d7cd8b666cb26551110ff (diff)
x20090315-1636
Diffstat (limited to 'emu/port/uqid.c')
-rw-r--r--emu/port/uqid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/emu/port/uqid.c b/emu/port/uqid.c
index bd43db3d..fbe07c01 100644
--- a/emu/port/uqid.c
+++ b/emu/port/uqid.c
@@ -29,7 +29,7 @@ uqidlook(Uqid **tab, Chan *c, vlong path)
Uqid **hp, *q;
for(hp = &tab[uqidhash(path)]; (q = *hp) != nil; hp = &q->next)
- if(q->type == c->type && q->dev == c->dev && q->oldpath == path)
+ if(q->dc == c->dev->dc && q->devno == c->devno && q->oldpath == path)
break;
return hp;
}
@@ -65,8 +65,8 @@ uqidalloc(Uqidtab *tab, Chan *c)
error(Enomem);
}
q->r.ref = 1;
- q->type = c->type;
- q->dev = c->dev;
+ q->dc = c->dev->dc;
+ q->devno = c->devno;
q->oldpath = c->qid.path;
q->newpath = c->qid.path;
while(uqidexists(tab->qids, q->newpath)){