aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chdelta.c6
-rw-r--r--src/include/delta.h2
-rw-r--r--src/include/events.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/chdelta.c b/src/chdelta.c
index ef4493b79..41f4490d0 100644
--- a/src/chdelta.c
+++ b/src/chdelta.c
@@ -32,7 +32,7 @@ DeltaList dlist;
*/
void chVTInit(void) {
- dlist.dl_next = dlist.dl_prev = (VirtualTimer *)&dlist;
+ dlist.dl_next = dlist.dl_prev = (void *)&dlist;
dlist.dl_dtime = (systime_t)-1;
}
@@ -64,7 +64,7 @@ void chVTSetI(VirtualTimer *vtp, systime_t time, vtfunc_t vtfunc, void *par) {
vtp->vt_prev = (vtp->vt_next = p)->vt_prev;
vtp->vt_prev->vt_next = p->vt_prev = vtp;
vtp->vt_dtime = time;
- if (p != (VirtualTimer *)&dlist)
+ if (p != (void *)&dlist)
p->vt_dtime -= time;
}
else
@@ -79,7 +79,7 @@ void chVTSetI(VirtualTimer *vtp, systime_t time, vtfunc_t vtfunc, void *par) {
*/
void chVTResetI(VirtualTimer *vtp) {
- if (vtp->vt_next != (VirtualTimer *)&dlist)
+ if (vtp->vt_next != (void *)&dlist)
vtp->vt_next->vt_dtime += vtp->vt_dtime;
vtp->vt_prev->vt_next = vtp->vt_next;
vtp->vt_next->vt_prev = vtp->vt_prev;
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.*/