Change in osmocom-bb[master]: mobile/gsm48_mm.h: use fixed-size integer types in packed structures

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

fixeria gerrit-no-reply at lists.osmocom.org
Sun Nov 17 12:11:58 UTC 2019


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/16089 )


Change subject: mobile/gsm48_mm.h: use fixed-size integer types in packed structures
......................................................................

mobile/gsm48_mm.h: use fixed-size integer types in packed structures

Change-Id: I54ed93c03ebe776bdc7eb761a8194da3ab0b67fb
---
M src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
1 file changed, 2 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/89/16089/1

diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
index 09d18ed..bf3aa25 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
@@ -55,7 +55,7 @@
 
 /* MMxx-SAP header */
 struct gsm48_mmxx_hdr {
-	int		msg_type; /* MMxx_* primitive */
+	uint16_t	msg_type; /* MMxx_* primitive */
 	uint32_t	ref; /* reference to transaction */
 	uint32_t	transaction_id; /* transaction identifier */
 	uint8_t		sapi; /* sapi */
@@ -71,8 +71,7 @@
 
 /* MMR-SAP header */
 struct gsm48_mmr {
-	int		msg_type;
-
+	uint8_t		msg_type;
 	uint8_t		cause;
 } __attribute__((packed));
 

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I54ed93c03ebe776bdc7eb761a8194da3ab0b67fb
Gerrit-Change-Number: 16089
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191117/5427b3ce/attachment.htm>


More information about the gerrit-log mailing list