This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( 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(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve fixeria: Looks good to me, approved 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: 2 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211102/07b2c8eb/attachment.htm>