ranap: Fix compiler warnings passing func callback

Fixes following warning types:
"passing argument 1 of ‘ranap_cn_rx_co’ from incompatible pointer type
[-Wincompatible-pointer-types]"

Change-Id: If80b57a8d36c28dee7db28cb36a88ed41e0a7328
This commit is contained in:
Pau Espin Pedrol
2021-10-29 18:13:59 +02:00
parent b80125f5c9
commit c40d445506
2 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ void hnb_rx_iu_release(struct hnb *hnb);
void hnb_rx_paging(struct hnb *hnb, const char *imsi);
void hnb_rx_secmode_cmd(struct hnb *hnb, long ip_alg);
void hnb_rua_dt_handle_ranap(struct hnb *hnb, struct ranap_message_s *ranap_msg);
void hnb_rua_cl_handle_ranap(struct hnb *hnb, struct ranap_message_s *ranap_msg);
void hnb_rua_dt_handle_ranap(void *ctx, struct ranap_message_s *ranap_msg);
void hnb_rua_cl_handle_ranap(void *ctx, struct ranap_message_s *ranap_msg);
void hnb_tx_iu_release_req(struct hnb *hnb);
struct msgb *gen_initue_lu(const struct hnb *hnb, int is_ps, uint32_t conn_id, const char *imsi);

View File

@@ -38,9 +38,9 @@ static const char *printstr(OCTET_STRING_t *s)
LOGP(DRANAP, LOGL_INFO, #octet_string_t " = %s\n",\
printstr(&octet_string_t))
void hnb_rua_dt_handle_ranap(struct hnb *hnb,
struct ranap_message_s *ranap_msg)
void hnb_rua_dt_handle_ranap(void *ctx, struct ranap_message_s *ranap_msg)
{
struct hnb *hnb = (struct hnb *)ctx;
int len;
uint8_t *data;
RANAP_PermittedIntegrityProtectionAlgorithms_t *algs;
@@ -83,9 +83,9 @@ void hnb_rua_dt_handle_ranap(struct hnb *hnb,
}
}
void hnb_rua_cl_handle_ranap(struct hnb *hnb,
struct ranap_message_s *ranap_msg)
void hnb_rua_cl_handle_ranap(void *ctx, struct ranap_message_s *ranap_msg)
{
struct hnb *hnb = (struct hnb *)ctx;
char imsi[16];
LOGP(DRANAP, LOGL_INFO, "rx ranap_msg->procedureCode %d\n",