osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/30085 )
Change subject: tests/hnb-test-rua: fix incompat pointer type ......................................................................
tests/hnb-test-rua: fix incompat pointer type
Fix for: ../../../../src/osmo-iuh/src/tests/hnb-test-rua.c:19:29: error: passing argument 1 of ‘ranap_cn_rx_co’ from incompatible pointer type [-Werror=incompatible-pointer-types] 19 | rc = ranap_cn_rx_co(hnb_test_rua_dt_handle_ranap, hnb, ies.ranaP_Message.buf, ies.ranaP_Message.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(struct hnb_test *, struct ranap_message_s *)
Change-Id: Id930a7f0d3d05cfcc8ba9734dd922de885853c8c --- M src/tests/hnb-test-rua.c 1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/85/30085/1
diff --git a/src/tests/hnb-test-rua.c b/src/tests/hnb-test-rua.c index 0882515..1db69cd 100644 --- a/src/tests/hnb-test-rua.c +++ b/src/tests/hnb-test-rua.c @@ -16,7 +16,8 @@ return; }
- rc = ranap_cn_rx_co(hnb_test_rua_dt_handle_ranap, hnb, ies.ranaP_Message.buf, ies.ranaP_Message.size); + rc = ranap_cn_rx_co((ranap_handle_cb)hnb_test_rua_dt_handle_ranap, hnb, ies.ranaP_Message.buf, + ies.ranaP_Message.size);
/* FIXME: what to do with the asn1c-allocated memory */ rua_free_directtransferies(&ies); @@ -33,7 +34,8 @@ return; }
- rc = ranap_cn_rx_cl(hnb_test_rua_cl_handle_ranap, hnb, ies.ranaP_Message.buf, ies.ranaP_Message.size); + rc = ranap_cn_rx_cl((ranap_handle_cb)hnb_test_rua_cl_handle_ranap, hnb, ies.ranaP_Message.buf, + ies.ranaP_Message.size);
/* FIXME: what to do with the asn1c-allocated memory */ rua_free_connectionlesstransferies(&ies);