From 2310f80695b4051cb63ca14878dfc5e76acb94e6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 3 Oct 2007 17:14:03 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@30 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/delta.h | 3 +-- src/include/semaphores.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/delta.h b/src/include/delta.h index 14f5b550e..7639301e1 100644 --- a/src/include/delta.h +++ b/src/include/delta.h @@ -77,8 +77,7 @@ extern DeltaList dlist; while (!(vtp = dlist.dl_next)->vt_dtime) { \ t_vtfunc fn = vtp->vt_func; \ vtp->vt_func = 0; \ - vtp->vt_prev->vt_next = vtp->vt_next; \ - vtp->vt_next->vt_prev = vtp->vt_prev; \ + (vtp->vt_next->vt_prev = (VirtualTimer *)&dlist)->vt_next = vtp->vt_next; \ fn(vtp->vt_par); \ } \ } diff --git a/src/include/semaphores.h b/src/include/semaphores.h index 8179627f4..c1f3f9db6 100644 --- a/src/include/semaphores.h +++ b/src/include/semaphores.h @@ -46,7 +46,7 @@ t_msg chSemWaitTimeout(Semaphore *sp, t_time time); t_msg chSemWaitTimeoutS(Semaphore *sp, t_time time); void chSemSignal(Semaphore *sp); void chSemSignalI(Semaphore *sp); -void chSignalWait(Semaphore *sps, Semaphore *spw); +void chSemSignalWait(Semaphore *sps, Semaphore *spw); #ifdef CH_USE_RT_SEMAPHORES void chSemRaisePrioWait(Semaphore *sp); -- cgit v1.2.3