diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-20 20:29:22 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-20 20:32:26 +0100 |
commit | a008b17f2e4a10c98b5eba6b723de7f6370571e4 (patch) | |
tree | d5ee321580b0ad3c216b3aa2f14f193db2276520 /src/hnbgw_hnbap.c | |
parent | ca74126d5413505a1eb2a7cc23be17fca4b1492f (diff) |
Fix compiler warning on signedness of char ptr using OCTET_STRING_fromBuf()
rua_msg_factory.c:19:48: warning: pointer targets in passing argument 2 of ‘OCTET_STRING_fromBuf’ differ in signedness [-Wpointer-sign]
Change-Id: Ie0a2e8e11902dc56720ff8121edde0e148fa587a
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r-- | src/hnbgw_hnbap.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 2d67219..c118774 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -194,10 +194,10 @@ static int hnbgw_tx_ue_register_rej_tmsi(struct hnb_context *hnb, UE_Identity_t ue_id->choice.tMSILAI.tMSI.size * 8 - ue_id->choice.tMSILAI.tMSI.bits_unused); OCTET_STRING_fromBuf(&reject.uE_Identity.choice.tMSILAI.lAI.pLMNID, - ue_id->choice.tMSILAI.lAI.pLMNID.buf, + (const char *)ue_id->choice.tMSILAI.lAI.pLMNID.buf, ue_id->choice.tMSILAI.lAI.pLMNID.size); OCTET_STRING_fromBuf(&reject.uE_Identity.choice.tMSILAI.lAI.lAC, - ue_id->choice.tMSILAI.lAI.lAC.buf, + (const char *)ue_id->choice.tMSILAI.lAI.lAC.buf, ue_id->choice.tMSILAI.lAI.lAC.size); break; @@ -227,13 +227,13 @@ static int hnbgw_tx_ue_register_rej_tmsi(struct hnb_context *hnb, UE_Identity_t ue_id->choice.pTMSIRAI.pTMSI.size * 8 - ue_id->choice.pTMSIRAI.pTMSI.bits_unused); OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID, - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size); OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC, - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size); OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.rAC, - ue_id->choice.pTMSIRAI.rAI.rAC.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.rAC.buf, ue_id->choice.pTMSIRAI.rAI.rAC.size); break; @@ -312,10 +312,10 @@ static int hnbgw_tx_ue_register_acc_tmsi(struct hnb_context *hnb, UE_Identity_t - ue_id->choice.tMSILAI.tMSI.bits_unused); tmsi = *(uint32_t*)accept.uE_Identity.choice.tMSILAI.tMSI.buf; OCTET_STRING_fromBuf(&accept.uE_Identity.choice.tMSILAI.lAI.pLMNID, - ue_id->choice.tMSILAI.lAI.pLMNID.buf, + (const char *)ue_id->choice.tMSILAI.lAI.pLMNID.buf, ue_id->choice.tMSILAI.lAI.pLMNID.size); OCTET_STRING_fromBuf(&accept.uE_Identity.choice.tMSILAI.lAI.lAC, - ue_id->choice.tMSILAI.lAI.lAC.buf, + (const char *)ue_id->choice.tMSILAI.lAI.lAC.buf, ue_id->choice.tMSILAI.lAI.lAC.size); break; @@ -326,13 +326,13 @@ static int hnbgw_tx_ue_register_acc_tmsi(struct hnb_context *hnb, UE_Identity_t - ue_id->choice.pTMSIRAI.pTMSI.bits_unused); tmsi = *(uint32_t*)accept.uE_Identity.choice.pTMSIRAI.pTMSI.buf; OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID, - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size); OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC, - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size); OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.rAC, - ue_id->choice.pTMSIRAI.rAI.rAC.buf, + (const char *)ue_id->choice.pTMSIRAI.rAI.rAC.buf, ue_id->choice.pTMSIRAI.rAI.rAC.size); break; |