From 07c7fa6716a2f54f9feab3eb56f8677edb1b033d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 4 Mar 2015 10:20:31 +0100 Subject: libthread: get rid of chaninit() (thanks qrstuv) chaninit() does not initialize Chan.qentry and Chan.nentry and there is no way to get rid of such a channel. nobody is using it, so removing the function to avoid confusion. --- sys/include/thread.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/include') diff --git a/sys/include/thread.h b/sys/include/thread.h index 411a71a7d..5e02dcc3e 100644 --- a/sys/include/thread.h +++ b/sys/include/thread.h @@ -63,7 +63,6 @@ int alt(Alt alts[]); int chanclose(Channel*); int chanclosing(Channel *c); Channel*chancreate(int elemsize, int bufsize); -int chaninit(Channel *c, int elemsize, int elemcnt); void chanfree(Channel *c); int chanprint(Channel *, char *, ...); long decref(Ref *r); /* returns 0 iff value is now zero */ -- cgit v1.2.3