diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-08-17 23:27:31 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-08-17 23:27:31 +0200 |
commit | c44b78f739a15469ea0d9a1cb3895abeb62e21fc (patch) | |
tree | 0289c607eede11a18aa3b08a0f770385a051272c /sys/src/9/port/devenv.c | |
parent | 72304eb350228a3267ef339905bef2f11659c4bf (diff) |
change definition of Chan.create to return a chan like open
Diffstat (limited to 'sys/src/9/port/devenv.c')
-rw-r--r-- | sys/src/9/port/devenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/port/devenv.c b/sys/src/9/port/devenv.c index 3031cc50e..b744b12fe 100644 --- a/sys/src/9/port/devenv.c +++ b/sys/src/9/port/devenv.c @@ -137,7 +137,7 @@ envopen(Chan *c, int omode) return c; } -static void +static Chan* envcreate(Chan *c, char *name, int omode, ulong) { Egrp *eg; @@ -183,6 +183,7 @@ envcreate(Chan *c, char *name, int omode, ulong) c->offset = 0; c->mode = omode; c->flag |= COPEN; + return c; } static void |