From 27ed2c5b0d68c5c868b8e83b52206ffee22749f0 Mon Sep 17 00:00:00 2001 From: Sven Robertz <sven@cs.lth.se> Date: Wed, 22 Feb 2012 17:31:41 +0100 Subject: [PATCH] removed unused channel --- examples/simple/datagram/thr_example2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/simple/datagram/thr_example2.c b/examples/simple/datagram/thr_example2.c index 3dc209d..8b862a7 100644 --- a/examples/simple/datagram/thr_example2.c +++ b/examples/simple/datagram/thr_example2.c @@ -14,7 +14,6 @@ static void handle_simple_TwoInts_foo(simple_TwoInts *v,void *context) { } static int encode(int argc, char *argv[]) { - struct thr_chn_t *p_thr_chn = NULL; struct thr_chn_t *p_thr_chn2 = NULL; struct labcomm_encoder *encoder; struct labcomm_decoder *decoder; @@ -39,7 +38,6 @@ static int encode(int argc, char *argv[]) { } else { - p_thr_chn = thr_open_chn(dest_mac, chn_id, frag_size, freq,NULL); p_thr_chn2 = thr_open_chn(dest_mac, chn_id, frag_size, freq,(thr_msg_handler_t)labcomm_decoder_decode_one); encoder = labcomm_encoder_new(labcomm_thr_writer, p_thr_chn2); labcomm_encoder_register_simple_TwoInts(encoder); @@ -71,7 +69,6 @@ static int encode(int argc, char *argv[]) { labcomm_encoder_free(encoder); labcomm_decoder_free(decoder); - thr_close_chn(p_thr_chn); thr_close_chn(p_thr_chn2); //client_exit(fd); } -- GitLab