pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-hnodeb/+/26034 )


Change subject: ranap: Fix compiler warnings passing func callback
......................................................................

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
---
M include/osmocom/hnodeb/ranap.h
M src/osmo-hnodeb/ranap.c
2 files changed, 6 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hnodeb refs/changes/34/26034/1

diff --git a/include/osmocom/hnodeb/ranap.h b/include/osmocom/hnodeb/ranap.h
index 7864c69..15e0609 100644
--- a/include/osmocom/hnodeb/ranap.h
+++ b/include/osmocom/hnodeb/ranap.h
@@ -27,7 +27,7 @@
 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);
diff --git a/src/osmo-hnodeb/ranap.c b/src/osmo-hnodeb/ranap.c
index 3dd759f..b5b7b9c 100644
--- a/src/osmo-hnodeb/ranap.c
+++ b/src/osmo-hnodeb/ranap.c
@@ -38,9 +38,9 @@
        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_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",

--
To view, visit https://gerrit.osmocom.org/c/osmo-hnodeb/+/26034
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnodeb
Gerrit-Branch: master
Gerrit-Change-Id: If80b57a8d36c28dee7db28cb36a88ed41e0a7328
Gerrit-Change-Number: 26034
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to