tests/hnb-test-rua: fix incompat pointer type
Adjust the first argument of hnb_test_rua_dt_handle_ranap and hnb_test_rua_cl_handle_ranap to be "void *priv", as it is private user data. 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
This commit is contained in:
parent
05bb6ad563
commit
b3a8345189
|
@ -9,10 +9,8 @@ void hnb_test_rua_dt_handle(struct hnb_test *hnb, struct ANY *in);
|
|||
void hnb_test_rua_cl_handle(struct hnb_test *hnb, struct ANY *in);
|
||||
|
||||
/* RUA calls RANAP */
|
||||
void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb,
|
||||
struct ranap_message_s *ranap_msg);
|
||||
void hnb_test_rua_cl_handle_ranap(struct hnb_test *hnb,
|
||||
struct ranap_message_s *ranap_msg);
|
||||
void hnb_test_rua_dt_handle_ranap(void *priv, struct ranap_message_s *ranap_msg);
|
||||
void hnb_test_rua_cl_handle_ranap(void *priv, struct ranap_message_s *ranap_msg);
|
||||
|
||||
/* RANAP calls main with actual payload*/
|
||||
void hnb_test_nas_rx_dtap(struct hnb_test *hnb, void *data, int len);
|
||||
|
|
|
@ -13,13 +13,13 @@ static const char *printstr(OCTET_STRING_t *s)
|
|||
printf(#octet_string_t " = %s\n",\
|
||||
printstr(&octet_string_t))
|
||||
|
||||
void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb,
|
||||
struct ranap_message_s *ranap_msg)
|
||||
void hnb_test_rua_dt_handle_ranap(void *priv, struct ranap_message_s *ranap_msg)
|
||||
{
|
||||
int len;
|
||||
uint8_t *data;
|
||||
RANAP_PermittedIntegrityProtectionAlgorithms_t *algs;
|
||||
RANAP_IntegrityProtectionAlgorithm_t *first_alg;
|
||||
struct hnb_test *hnb = priv;
|
||||
|
||||
printf("rx ranap_msg->procedureCode %d\n",
|
||||
ranap_msg->procedureCode);
|
||||
|
@ -58,10 +58,10 @@ void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb,
|
|||
}
|
||||
}
|
||||
|
||||
void hnb_test_rua_cl_handle_ranap(struct hnb_test *hnb,
|
||||
struct ranap_message_s *ranap_msg)
|
||||
void hnb_test_rua_cl_handle_ranap(void *priv, struct ranap_message_s *ranap_msg)
|
||||
{
|
||||
char imsi[16];
|
||||
struct hnb_test *hnb = priv;
|
||||
|
||||
printf("rx ranap_msg->procedureCode %d\n",
|
||||
ranap_msg->procedureCode);
|
||||
|
|
Loading…
Reference in New Issue