aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chqueues.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-02 17:27:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-02 17:27:31 +0000
commitd9578ad0dbbb3cad59073de52cf258497acb5778 (patch)
treedf7ca46405d902b8c51047d328660d6b969f9c0d /os/kernel/src/chqueues.c
parent3f81701c837ada65d9d5a90e29157dc818e14c08 (diff)
downloadChibiOS-d9578ad0dbbb3cad59073de52cf258497acb5778.tar.gz
ChibiOS-d9578ad0dbbb3cad59073de52cf258497acb5778.tar.bz2
ChibiOS-d9578ad0dbbb3cad59073de52cf258497acb5778.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1990 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chqueues.c')
-rw-r--r--os/kernel/src/chqueues.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/src/chqueues.c b/os/kernel/src/chqueues.c
index acc7494c2..651b79f4e 100644
--- a/os/kernel/src/chqueues.c
+++ b/os/kernel/src/chqueues.c
@@ -215,7 +215,7 @@ void chOQInit(OutputQueue *oqp, uint8_t *bp, size_t size, qnotify_t onfy) {
oqp->q_buffer = oqp->q_rdptr = oqp->q_wrptr = bp;
oqp->q_top = bp + size;
oqp->q_notify = onfy;
- chSemInit(&oqp->q_sem, size);
+ chSemInit(&oqp->q_sem, (cnt_t)size);
}
/**