summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-17 11:03:48 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-01-17 11:03:48 +0700
commit382736448edd65fffc910489a464c63eed309922 (patch)
treeb1cb85077b946f828180de8f2c9588c877769d5b /src/host/trxcon/trxcon.c
parent1b6be6fc24a4ffecbd3c87550561070b9bca1ffe (diff)
trxcon/trx_if: refactor trx_if_open()
The main changes are: - return pointer to the allocated trx_instance or NULL, - extend debug message with TRX address and base port, - accept the talloc context as 'tall_ctx' argument, - rename goto label 'error' to 'udp_error', - rename argument 'port' to 'base_port'. Change-Id: I39b24afee2f09d6a6c500cfc26ac45f206589c5c
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 874f893b..501d0c72 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -284,9 +284,10 @@ int main(int argc, char **argv)
goto exit;
/* Init transceiver interface */
- rc = trx_if_open(&app_data.trx,
- app_data.trx_bind_ip, app_data.trx_remote_ip, app_data.trx_base_port);
- if (rc)
+ app_data.trx = trx_if_open(tall_trx_ctx,
+ app_data.trx_bind_ip, app_data.trx_remote_ip,
+ app_data.trx_base_port);
+ if (!app_data.trx)
goto exit;
/* Bind L1CTL with TRX and vice versa */