diff options
| author | Charles.Forsyth <devnull@localhost> | 2009-03-25 16:37:32 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2009-03-25 16:37:32 +0000 |
| commit | e0a2b8d82a5521d9391ca8c6f055777954c76c2f (patch) | |
| tree | bed98eebad567e161db651e8a173f1a819169292 /emu/Plan9/devsrv9.c | |
| parent | d8150d92150b08ade63d7cd8b666cb26551110ff (diff) | |
x20090315-1636
Diffstat (limited to 'emu/Plan9/devsrv9.c')
| -rw-r--r-- | emu/Plan9/devsrv9.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/emu/Plan9/devsrv9.c b/emu/Plan9/devsrv9.c index 7ea26dfb..c0e0e6e8 100644 --- a/emu/Plan9/devsrv9.c +++ b/emu/Plan9/devsrv9.c @@ -128,7 +128,7 @@ srv9walk(Chan *c, Chan *nc, char **name, int nname) } if(nc == nil){ nc = devclone(c); - nc->type = 0; /* device doesn't know about this channel yet */ + /* device doesn't know about this channel yet */ alloc = 1; } wq->clone = nc; @@ -161,7 +161,8 @@ srv9walk(Chan *c, Chan *nc, char **name, int nname) wq->clone = nil; }else{ /* attach cloned channel to device */ - wq->clone->type = c->type; + devtabincref(c->dev); + wq->clone->dev = c->dev; if(wq->clone != c) nc->aux = srvget(nc->qid.path); } @@ -379,7 +380,9 @@ Dev srv9devtab = { L'₪', "srv9", + devreset, srv9init, + devshutdown, srv9attach, srv9walk, srv9stat, |
