From 0b2963c5142fbc387865b0fdd316879bda2f83a6 Mon Sep 17 00:00:00 2001 From: Sven Robertz <sven@cs.lth.se> Date: Thu, 15 Dec 2011 09:29:09 +0100 Subject: [PATCH] added typecast tp thr_msg_handler_t --- examples/simple/datagram/thr_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple/datagram/thr_example.c b/examples/simple/datagram/thr_example.c index 6d31334..1a8aa75 100644 --- a/examples/simple/datagram/thr_example.c +++ b/examples/simple/datagram/thr_example.c @@ -76,7 +76,7 @@ static int decode(int argc, char *argv[]) { } else { - p_thr_chn = thr_open_chn(dest_mac, chn_id, frag_size, freq, labcomm_decoder_decode_one); + p_thr_chn = thr_open_chn(dest_mac, chn_id, frag_size, freq, (thr_msg_handler_t)labcomm_decoder_decode_one); decoder = labcomm_decoder_new(labcomm_thr_reader, p_thr_chn); if (!decoder) { -- GitLab