Change in osmo-pcu[master]: csn1: Fix warning with -Wmissing-prototypes

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

laforge gerrit-no-reply at lists.osmocom.org
Tue Jan 28 21:34:44 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/17001 )

Change subject: csn1: Fix warning with -Wmissing-prototypes
......................................................................

csn1: Fix warning with -Wmissing-prototypes

Port of wireshark.git 2e52e2ac997ca58caabee3270b5a6c3f96159ff0.

Ported-by: Pau Espin Pedrol <pespin at sysmocom.de>
Change-Id: Ic69a75ce3f01cea326139f678b963110e895c356
---
M src/csn1.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/csn1.cpp b/src/csn1.cpp
index 21bb976..c9c9aa1 100644
--- a/src/csn1.cpp
+++ b/src/csn1.cpp
@@ -1762,7 +1762,7 @@
       {
         //gint16 count = pDescr->i;
         guint8 i     = 0;
-        CSN_ChoiceElement_t* pChoice = (CSN_ChoiceElement_t*) pDescr->descr.ptr;
+        const CSN_ChoiceElement_t* pChoice = (const CSN_ChoiceElement_t*) pDescr->descr.ptr;
 
         pui8          = pui8DATA(data, pDescr->offset);
         i = *pui8;

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ic69a75ce3f01cea326139f678b963110e895c356
Gerrit-Change-Number: 17001
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200128/e7fae2d3/attachment.htm>


More information about the gerrit-log mailing list