aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-04 09:44:19 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-04 10:02:01 +0200
commit801d6fe40cd5bd11257074c7aaf113a57919fb2d (patch)
treee906be59eb25a01fd1ca09c555e08675200c27d8
parent0494c75a53f05a5ec4c4b3830672ef2451396f27 (diff)
tbf/test: Fix old_tbf argument to tbf_alloc_ul_tbf
Currently the ul_tbf is used in its own declaration as an argument to tbf_alloc_ul_tbf, where dl_tbf can be used instead and makes more sense. This commit uses dl_tbf instead of ul_tbf as old_tbf. Addresses: tbf/TbfTest.cpp:71:14: warning: ‘ul_tbf’ may be used uninitialized in this function Sponsored-by: On-Waves ehf
-rw-r--r--tests/tbf/TbfTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 51c4c88..9d01636 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -67,7 +67,7 @@ static void test_tbf_tlli_update()
the_bts.timing_advance()->remember(0x2342, dl_tbf->ta);
gprs_rlcmac_tbf *ul_tbf = tbf_alloc_ul_tbf(the_bts.bts_data(),
- ul_tbf, 0,
+ dl_tbf, 0,
0, 0, 0);
ul_tbf->update_tlli(0x2342);
ul_tbf->tlli_mark_valid();