Skip to content
Snippets Groups Projects
Commit 27ed2c5b authored by Sven Robertz's avatar Sven Robertz
Browse files

removed unused channel

parent 7ff39bbd
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,6 @@ static void handle_simple_TwoInts_foo(simple_TwoInts *v,void *context) { ...@@ -14,7 +14,6 @@ static void handle_simple_TwoInts_foo(simple_TwoInts *v,void *context) {
} }
static int encode(int argc, char *argv[]) { static int encode(int argc, char *argv[]) {
struct thr_chn_t *p_thr_chn = NULL;
struct thr_chn_t *p_thr_chn2 = NULL; struct thr_chn_t *p_thr_chn2 = NULL;
struct labcomm_encoder *encoder; struct labcomm_encoder *encoder;
struct labcomm_decoder *decoder; struct labcomm_decoder *decoder;
...@@ -39,7 +38,6 @@ static int encode(int argc, char *argv[]) { ...@@ -39,7 +38,6 @@ static int encode(int argc, char *argv[]) {
} }
else 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); 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); encoder = labcomm_encoder_new(labcomm_thr_writer, p_thr_chn2);
labcomm_encoder_register_simple_TwoInts(encoder); labcomm_encoder_register_simple_TwoInts(encoder);
...@@ -71,7 +69,6 @@ static int encode(int argc, char *argv[]) { ...@@ -71,7 +69,6 @@ static int encode(int argc, char *argv[]) {
labcomm_encoder_free(encoder); labcomm_encoder_free(encoder);
labcomm_decoder_free(decoder); labcomm_decoder_free(decoder);
thr_close_chn(p_thr_chn);
thr_close_chn(p_thr_chn2); thr_close_chn(p_thr_chn2);
//client_exit(fd); //client_exit(fd);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment