git: 9front

Download patch

ref: 1252ecf730c288d7e1ba1f3343d0b6158a8839f6
parent: 7a153b0a4dfd9ba85e98aafcf61afefcbe4c99f0
author: mischief <mischief@offblast.org>
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
--