Change in osmo-pcu[master]: csn1: Don't cast away constness

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.org
Fri Jan 24 17:37:01 UTC 2020


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


Change subject: csn1: Don't cast away constness
......................................................................

csn1: Don't cast away constness

Port of wireshark.git commit 8e22ded7f8537e37e89ba558c83702d127443ae8.

Change-Id: I100d5c43d8878e660035bf4a64718771f41a38a8
---
M src/csn1.h
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/02/17002/1

diff --git a/src/csn1.h b/src/csn1.h
index 0da529c..19b44ae 100644
--- a/src/csn1.h
+++ b/src/csn1.h
@@ -480,7 +480,7 @@
  *      Par3: type of member
  *****************************************************************************/
 #define M_TYPE(_STRUCT, _MEMBER, _MEMBER_TYPE)\
-        {CSN_TYPE, 0, {(void*)CSNDESCR_##_MEMBER_TYPE}, offsetof(_STRUCT, _MEMBER), FALSE, #_MEMBER, {NULL}, NULL}
+        {CSN_TYPE, 0, {(const void*)CSNDESCR_##_MEMBER_TYPE}, offsetof(_STRUCT, _MEMBER), FALSE, #_MEMBER, {NULL}, NULL}
 
 /******************************************************************************
  * M_UNION(Par1, Par2)

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I100d5c43d8878e660035bf4a64718771f41a38a8
Gerrit-Change-Number: 17002
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200124/d21ed997/attachment.htm>


More information about the gerrit-log mailing list