diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-12 21:05:13 +0000 |
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-12 21:05:13 +0000 |
| commit | 777291ac8aaed233aa79bb4388ff3485e4c19de1 (patch) | |
| tree | a8f2917b3fe3a3c13d91c507b0d69cc24100b902 /src/include | |
| parent | d76f6bff4f7561f6cf071108b8db5756fe9a3909 (diff) | |
| download | ChibiOS-777291ac8aaed233aa79bb4388ff3485e4c19de1.tar.gz ChibiOS-777291ac8aaed233aa79bb4388ff3485e4c19de1.tar.bz2 ChibiOS-777291ac8aaed233aa79bb4388ff3485e4c19de1.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@228 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/delta.h | 2 | ||||
| -rw-r--r-- | src/include/events.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/delta.h b/src/include/delta.h index 1f7a584f0..4e0f32b0f 100644 --- a/src/include/delta.h +++ b/src/include/delta.h @@ -76,7 +76,7 @@ extern DeltaList dlist; while (!(vtp = dlist.dl_next)->vt_dtime) { \
vtfunc_t fn = vtp->vt_func; \
vtp->vt_func = 0; \
- (vtp->vt_next->vt_prev = (VirtualTimer *)&dlist)->vt_next = vtp->vt_next; \
+ (vtp->vt_next->vt_prev = (void *)&dlist)->vt_next = vtp->vt_next; \
fn(vtp->vt_par); \
} \
}
diff --git a/src/include/events.h b/src/include/events.h index 8cfb0109f..5bcb70e84 100644 --- a/src/include/events.h +++ b/src/include/events.h @@ -61,7 +61,7 @@ typedef struct EventSource { * @note Can be called with interrupts disabled or enabled.
*/
#define chEvtInit(esp) \
- ((esp)->es_next = (EventListener *)(esp))
+ ((esp)->es_next = (void *)(esp))
/**
* Verifies if there is at least one \p EventListener registered on the
@@ -70,7 +70,7 @@ typedef struct EventSource { * @note Can be called with interrupts disabled or enabled.
*/
#define chEvtIsListening(esp) \
- ((esp) != (EventSource *)(esp)->es_next)
+ ((esp) != (void *)(esp)->es_next)
/** Event Handler callback function.*/
|
