shithub: riscv

Download patch

ref: 98645db9abdbdd3b802407be2db2acd7f507c26a
parent: 8ec06b6fc6b44f2297fc6449196a7f9c57ff84c5
author: mischief <[email protected]>
date: Mon Dec 8 18:16:22 EST 2014

devsegment: fix segmentcreate function signature

--- a/sys/src/9/port/devsegment.c
+++ b/sys/src/9/port/devsegment.c
@@ -264,7 +264,7 @@
 		putgseg(c->aux);
 }
 
-static void
+static Chan*
 segmentcreate(Chan *c, char *name, int omode, ulong perm)
 {
 	int x, xfree;
@@ -311,6 +311,7 @@
 	c->qid.vers = 0;
 	c->mode = openmode(omode);
 	c->mode = OWRITE;
+	return c;
 }
 
 static long