devsegment: fix segmentcreate function signature
This commit is contained in:
parent
8ec06b6fc6
commit
98645db9ab
1 changed files with 2 additions and 1 deletions
|
@ -264,7 +264,7 @@ segmentclose(Chan *c)
|
||||||
putgseg(c->aux);
|
putgseg(c->aux);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static Chan*
|
||||||
segmentcreate(Chan *c, char *name, int omode, ulong perm)
|
segmentcreate(Chan *c, char *name, int omode, ulong perm)
|
||||||
{
|
{
|
||||||
int x, xfree;
|
int x, xfree;
|
||||||
|
@ -311,6 +311,7 @@ segmentcreate(Chan *c, char *name, int omode, ulong perm)
|
||||||
c->qid.vers = 0;
|
c->qid.vers = 0;
|
||||||
c->mode = openmode(omode);
|
c->mode = openmode(omode);
|
||||||
c->mode = OWRITE;
|
c->mode = OWRITE;
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static long
|
static long
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue