summaryrefslogtreecommitdiff
path: root/cesar/host
diff options
context:
space:
mode:
authorlefranc2008-08-05 11:55:19 +0000
committerlefranc2008-08-05 11:55:19 +0000
commite5c753f39a6812c7a18b5e946fe556e40e684181 (patch)
tree4b47408107702aaaa94cee0ae61b9b69b1da10d3 /cesar/host
parentb0c217f44711ecbf3b06e32cbe88747cea0339fe (diff)
removed (netclock_callback_t *) casts before PARENT_OF()
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2713 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/host')
-rw-r--r--cesar/host/netclock/src/netclock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/host/netclock/src/netclock.c b/cesar/host/netclock/src/netclock.c
index 3d2f0a4779..4ff2d3377d 100644
--- a/cesar/host/netclock/src/netclock.c
+++ b/cesar/host/netclock/src/netclock.c
@@ -45,8 +45,8 @@ void netclock_free(netclock_ctx_t *netclock);
static bool _netclock_node_less(set_node_t *left, set_node_t *right)
{
- return (((netclock_callback_t *)PARENT_OF(netclock_callback_t, node, left))->id
- < ((netclock_callback_t *)PARENT_OF(netclock_callback_t, node, right))->id);
+ return ((PARENT_OF(netclock_callback_t, node, left))->id
+ < (PARENT_OF(netclock_callback_t, node, right))->id);
}
/**
@@ -197,7 +197,7 @@ int netclock_unschedule(
&msg,
NETWORK_CLOCK_TYPE_REMOVE,
0,
- ((netclock_callback_t *)PARENT_OF(netclock_callback_t, node, found))->tick
+ (PARENT_OF(netclock_callback_t, node, found))->tick
);
msg.hdr.netclock->id = htons(id);
if(sci_fill_hdr(netclock->sci, &msg, SCI_MSG_TYPE_NETWORK_CLOCK, 0) < 0)
@@ -325,7 +325,7 @@ int netclock_recv(sci_msg_t *msg, void *nclock)
}
/* remove it from the callback set */
- found_callback = (netclock_callback_t *)PARENT_OF(netclock_callback_t, node, found_node);
+ found_callback = PARENT_OF(netclock_callback_t, node, found_node);
set_remove(&netclock->callback_set, found_node);
dbg_assert(netclock->callback_nb > 0);
netclock->callback_nb--;