From b15f373cd9dfc8bdf040124f95df3b76495293f6 Mon Sep 17 00:00:00 2001 From: Steve Underwood Date: Fri, 20 Jun 2014 02:58:33 +0800 Subject: [PATCH] Tweaks --- libs/spandsp/tests/super_tone_rx_tests.c | 4 ++-- libs/spandsp/tests/super_tone_tx_tests.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/spandsp/tests/super_tone_rx_tests.c b/libs/spandsp/tests/super_tone_rx_tests.c index 41ff55d958..01d340c052 100644 --- a/libs/spandsp/tests/super_tone_rx_tests.c +++ b/libs/spandsp/tests/super_tone_rx_tests.c @@ -188,8 +188,8 @@ static int parse_tone(super_tone_rx_descriptor_t *desc, int tone_id, super_tone_ length*1000.0 + 0.5, cycles); *tree = treep; - tree = &(treep->next); - parse_tone(desc, tone_id, &(treep->nest), doc, ns, cur); + tree = &treep->next; + parse_tone(desc, tone_id, &treep->nest, doc, ns, cur); } /*endif*/ cur = cur->next; diff --git a/libs/spandsp/tests/super_tone_tx_tests.c b/libs/spandsp/tests/super_tone_tx_tests.c index c61e361144..68d65a7d42 100644 --- a/libs/spandsp/tests/super_tone_tx_tests.c +++ b/libs/spandsp/tests/super_tone_tx_tests.c @@ -33,6 +33,7 @@ #include "config.h" #endif +#include #include #include #include @@ -165,8 +166,8 @@ static int parse_tone(super_tone_tx_step_t **tree, xmlDocPtr doc, xmlNsPtr ns, x length*1000.0 + 0.5, cycles); *tree = treep; - tree = &(treep->next); - parse_tone(&(treep->nest), doc, ns, cur); + tree = &treep->next; + parse_tone(&treep->nest, doc, ns, cur); } /*endif*/ cur = cur->next;