Change in osmo-hlr[master]: src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat May 25 12:23:12 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/14181


Change subject: src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()
......................................................................

src/hlr.c: fix deprecation warning: use gsm48_decode_bcd_number2()

Change-Id: I84fc1a0a6a334805b5dc1cef994f70b01a5ffcd4
---
M src/hlr.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/81/14181/1

diff --git a/src/hlr.c b/src/hlr.c
index 694ba14..33d2828 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -487,7 +487,7 @@
 	}
 
 	/* Decode IMEI */
-	if (gsm48_decode_bcd_number(imei, sizeof(imei), gsup->imei_enc, 0) < 0) {
+	if (gsm48_decode_bcd_number2(imei, sizeof(imei), gsup->imei_enc, gsup->imei_enc_len, 0) < 0) {
 		LOGP(DMAIN, LOGL_ERROR, "%s: failed to decode IMEI\n", gsup->imsi);
 		gsup_send_err_reply(conn, gsup->imsi, gsup->message_type, GMM_CAUSE_INV_MAND_INFO);
 		return -1;

-- 
To view, visit https://gerrit.osmocom.org/14181
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I84fc1a0a6a334805b5dc1cef994f70b01a5ffcd4
Gerrit-Change-Number: 14181
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190525/d82e4c52/attachment.htm>


More information about the gerrit-log mailing list