diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-26 19:17:58 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:11 +0100 |
commit | 70ddde6929a0fe24b509da6a621ca138daefa9a3 (patch) | |
tree | 15e03cfa35fa3133f5b4c7d952da64beb0505955 /tests | |
parent | f63cabd931cc0d03420b41d5990d04e48dbe74c4 (diff) |
tbf/bts: Move the tfi_find_free into the bts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index 281ac652..5790ade1 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -62,13 +62,13 @@ static void test_alloc_a(gprs_rlcmac_tbf_direction dir, const int count) for (int i = 0; i < count; ++i) { struct gprs_rlcmac_tbf *tbf; - tfi = tfi_find_free(bts, dir, &used_trx, 0); + tfi = the_bts.tfi_find_free(dir, &used_trx, 0); OSMO_ASSERT(tfi >= 0); tbfs[i] = tbf_alloc(bts, NULL, dir, tfi, used_trx, 0, 0); } /* Now check that there are still some TFIs */ - tfi = tfi_find_free(bts, dir, &used_trx, 0); + tfi = the_bts.tfi_find_free(dir, &used_trx, 0); switch (dir) { case GPRS_RLCMAC_UL_TBF: OSMO_ASSERT(tfi >= 0); @@ -83,7 +83,7 @@ static void test_alloc_a(gprs_rlcmac_tbf_direction dir, const int count) if (tbfs[i]) tbf_free(tbfs[i]); - tfi = tfi_find_free(bts, dir, &used_trx, 0); + tfi = the_bts.tfi_find_free(dir, &used_trx, 0); OSMO_ASSERT(tfi >= 0); tbfs[tfi] = tbf_alloc(bts, NULL, dir, tfi, used_trx, 0, 0); |