diff options
Diffstat (limited to 'emu/port/dev.c')
| -rw-r--r-- | emu/port/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emu/port/dev.c b/emu/port/dev.c index 5df62ecc..ee4053aa 100644 --- a/emu/port/dev.c +++ b/emu/port/dev.c @@ -102,7 +102,6 @@ devclone(Chan *c) panic("clone of open file type %C\n", devtab[c->type]->dc); nc = newchan(); - nc->type = c->type; nc->dev = c->dev; nc->mode = c->mode; @@ -119,7 +118,8 @@ devclone(Chan *c) Walkqid* devwalk(Chan *c, Chan *nc, char **name, int nname, Dirtab *tab, int ntab, Devgen *gen) { - int i, j, alloc; + int i, j; + volatile int alloc; Walkqid *wq; char *n; Dir dir; |
