summaryrefslogtreecommitdiff
path: root/emu/port/devpipe.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/devpipe.c
parentd8150d92150b08ade63d7cd8b666cb26551110ff (diff)
x20090315-1636
Diffstat (limited to 'emu/port/devpipe.c')
-rw-r--r--emu/port/devpipe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/emu/port/devpipe.c b/emu/port/devpipe.c
index 32c16ab6..29e75c79 100644
--- a/emu/port/devpipe.c
+++ b/emu/port/devpipe.c
@@ -99,7 +99,6 @@ pipeattach(char *spec)
c->qid.vers = 0;
c->qid.type = QTDIR;
c->aux = p;
- c->dev = 0;
return c;
}
@@ -311,7 +310,7 @@ piperead(Chan *c, void *va, long n, vlong junk)
}
static Block*
-pipebread(Chan *c, long n, ulong offset)
+pipebread(Chan *c, long n, vlong offset)
{
Pipe *p;
@@ -368,7 +367,7 @@ pipewrite(Chan *c, void *va, long n, vlong junk)
}
static long
-pipebwrite(Chan *c, Block *bp, ulong junk)
+pipebwrite(Chan *c, Block *bp, vlong junk)
{
long n;
Pipe *p;
@@ -444,7 +443,9 @@ Dev pipedevtab = {
'|',
"pipe",
+ devreset,
pipeinit,
+ devshutdown,
pipeattach,
pipewalk,
pipestat,