diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-12-18 09:44:28 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-12-18 09:44:28 +0000 |
| commit | 45a14cc6b60b02e58eb1b271508ccc2fa3c52b8f (patch) | |
| tree | 91950c4ad9aa5a856283b93f701b3963fa891d46 /emu | |
| parent | ac53509e2be27b6223bb0396f49e9c0dd3d32a27 (diff) | |
20071218-0950
Diffstat (limited to 'emu')
| -rw-r--r-- | emu/port/dev.c | 4 | ||||
| -rw-r--r-- | emu/port/devmnt.c | 3 |
2 files changed, 4 insertions, 3 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; diff --git a/emu/port/devmnt.c b/emu/port/devmnt.c index 0d490625..6a18dd0a 100644 --- a/emu/port/devmnt.c +++ b/emu/port/devmnt.c @@ -379,7 +379,8 @@ mntchan(void) static Walkqid* mntwalk(Chan *c, Chan *nc, char **name, int nname) { - int i, alloc; + volatile int alloc; + int i; Mnt *m; Mntrpc *r; Walkqid *wq; |
