aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-14 01:19:53 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-14 01:22:12 +0200
commitfb78397cbdc652a24a7b9d0487f761ccde21728a (patch)
tree70b74458a88b8c4ec690ac8b103c8e9f1d275eb5
parentfe6c75d24a1751341bcee91cb45c7ac7f5d07da3 (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/meas/meas_test.c2
-rw-r--r--tests/paging/paging_test.c2
-rw-r--r--tests/tx_power/tx_power_test.c2
7 files changed, 7 insertions, 7 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 611c441b..adc4d65b 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/meas/meas_test.c b/tests/meas/meas_test.c
index c87350ba..6c514cab 100644
--- a/tests/meas/meas_test.c
+++ b/tests/meas/meas_test.c
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
bts_log_init(NULL);
osmo_stderr_target->categories[DMEAS].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 fb234095..a47d186c 100644
--- a/tests/tx_power/tx_power_test.c
+++ b/tests/tx_power/tx_power_test.c
@@ -215,7 +215,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);