aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-18 22:59:58 +0200
committerHarald Welte <laforge@osmocom.org>2020-12-21 17:58:06 +0100
commit6e831b72d7bc33a77ef35ca1851e9bd549045777 (patch)
tree791c0d49af8ebc11d2e5d7a529df2c6c1970b59e /tests
parent77a7cf429b5b296d39ace5b0b2b672eb3c674022 (diff)
Use osmo_fd_setup() wherever applicable
Diffstat (limited to 'tests')
-rw-r--r--tests/e1inp_ipa_bts_test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/e1inp_ipa_bts_test.c b/tests/e1inp_ipa_bts_test.c
index 3c7613e..68dfefb 100644
--- a/tests/e1inp_ipa_bts_test.c
+++ b/tests/e1inp_ipa_bts_test.c
@@ -307,10 +307,7 @@ int main(void)
LOGP(DBTSTEST, LOGL_ERROR, "cannot create pipe fds\n");
exit(EXIT_FAILURE);
}
- bts_eventfd.fd = eventfds[0];
- bts_eventfd.cb = test_bts_gsm_12_21_cb;
- bts_eventfd.when = OSMO_FD_READ;
- bts_eventfd.data = &bts_dev_info;
+ osmo_fd_setup(&bts_eventfd, eventfds[0], OSMO_FD_READ, test_bts_gsm_12_21_cb, &bts_dev_info, 0);
if (osmo_fd_register(&bts_eventfd) < 0) {
LOGP(DBTSTEST, LOGL_ERROR, "could not register event fd\n");
exit(EXIT_FAILURE);