aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-14 01:19:53 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2017-08-29 15:56:38 +0300
commitf4a74c21041345a5566e3b1f4e44d08ec6368119 (patch)
tree5d7b0d9d7a2d9ea7aaf0d17eca424bd8c1edd820
parent50629b6ba57e7e53fb16bd95a94167329bb0f70c (diff)
Fix build after recent gsm_bts_alloc() change
In openbsc.git Change-Id I61c18a7f021fcb1ec00d34a745f4e3ab03416c2d we changed the gsm_bts_alloc() function signature to include a second argument (the BTS number). This broke omso-bts, and this commit is intended to make it build again. Change-Id: I7ef7654d48c1cfc7e4ecb0b771553ec0740ce2bf
-rw-r--r--src/common/main.c2
-rw-r--r--tests/agch/agch_test.c2
-rw-r--r--tests/cipher/cipher_test.c2
-rw-r--r--tests/handover/handover_test.c2
-rw-r--r--tests/paging/paging_test.c2
-rw-r--r--tests/tx_power/tx_power_test.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/common/main.c b/src/common/main.c
index 4c518485..6c13663f 100644
--- a/src/common/main.c
+++ b/src/common/main.c
@@ -241,7 +241,7 @@ int bts_main(int argc, char **argv)
handle_options(argc, argv);
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (!bts) {
fprintf(stderr, "Failed to create BTS structure\n");
exit(1);
diff --git a/tests/agch/agch_test.c b/tests/agch/agch_test.c
index e275c644..7c4e6cdb 100644
--- a/tests/agch/agch_test.c
+++ b/tests/agch/agch_test.c
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
bts_log_init(NULL);
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (bts_init(bts) < 0) {
fprintf(stderr, "unable to open bts\n");
exit(1);
diff --git a/tests/cipher/cipher_test.c b/tests/cipher/cipher_test.c
index c913925e..07d9fdee 100644
--- a/tests/cipher/cipher_test.c
+++ b/tests/cipher/cipher_test.c
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
bts_log_init(NULL);
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (bts_init(bts) < 0) {
fprintf(stderr, "unable to open bts\n");
exit(1);
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index a7a66d06..6abaeff1 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
bts_log_init(NULL);
osmo_stderr_target->categories[DHO].loglevel = LOGL_DEBUG;
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (!bts) {
fprintf(stderr, "Failed to create BTS structure\n");
exit(1);
diff --git a/tests/paging/paging_test.c b/tests/paging/paging_test.c
index 1d5f2162..2573b3fb 100644
--- a/tests/paging/paging_test.c
+++ b/tests/paging/paging_test.c
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
bts_log_init(NULL);
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (bts_init(bts) < 0) {
fprintf(stderr, "unable to open bts\n");
exit(1);
diff --git a/tests/tx_power/tx_power_test.c b/tests/tx_power/tx_power_test.c
index d6573620..11f55efa 100644
--- a/tests/tx_power/tx_power_test.c
+++ b/tests/tx_power/tx_power_test.c
@@ -207,7 +207,7 @@ int main(int argc, char **argv)
osmo_stderr_target->categories[DL1C].loglevel = LOGL_DEBUG;
log_set_print_filename(osmo_stderr_target, 0);
- bts = gsm_bts_alloc(tall_bts_ctx);
+ bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (!bts) {
fprintf(stderr, "Failed to create BTS structure\n");
exit(1);