From 98645db9abdbdd3b802407be2db2acd7f507c26a Mon Sep 17 00:00:00 2001 From: mischief Date: Mon, 8 Dec 2014 23:16:22 -0800 Subject: [PATCH] devsegment: fix segmentcreate function signature --- sys/src/9/port/devsegment.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/src/9/port/devsegment.c b/sys/src/9/port/devsegment.c index e9806e933..bbf591320 100644 --- a/sys/src/9/port/devsegment.c +++ b/sys/src/9/port/devsegment.c @@ -264,7 +264,7 @@ segmentclose(Chan *c) putgseg(c->aux); } -static void +static Chan* segmentcreate(Chan *c, char *name, int omode, ulong perm) { int x, xfree; @@ -311,6 +311,7 @@ segmentcreate(Chan *c, char *name, int omode, ulong perm) c->qid.vers = 0; c->mode = openmode(omode); c->mode = OWRITE; + return c; } static long