<p><a href="https://gerrit.osmocom.org/11656">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11656/2/include/osmocom/sgsn/gprs_sndcp_comp.h">File include/osmocom/sgsn/gprs_sndcp_comp.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11656/2/include/osmocom/sgsn/gprs_sndcp_comp.h@47">Patch Set #2, Line 47:</a> <code style="font-family:monospace,monospace">  } algo;                                         /* Algorithm type (see gprs_sndcp_xid.h) */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">We have this kind of union twice, once in this file and in next file. I'm wondering whether it makes sense to define the union with a name, instead of creating same anonymous union twice.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11656/2/include/osmocom/sgsn/gprs_sndcp_xid.h">File include/osmocom/sgsn/gprs_sndcp_xid.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11656/2/include/osmocom/sgsn/gprs_sndcp_xid.h@47">Patch Set #2, Line 47:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">What about defining it here?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11656/2/include/osmocom/sgsn/gprs_sndcp_xid.h@61">Patch Set #2, Line 61:</a> <code style="font-family:monospace,monospace">      union {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Here duplicate anonymous union.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11656/2/src/gprs/gprs_sndcp_xid.c">File src/gprs/gprs_sndcp_xid.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11656/2/src/gprs/gprs_sndcp_xid.c@45">Patch Set #2, Line 45:</a> <code style="font-family:monospace,monospace">   union {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">And here it is, same anonymous union 3rd time.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11656">change 11656</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11656"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I3771a5c59f4e6fee24083b3c914965baf192cbd7 </div>
<div style="display:none"> Gerrit-Change-Number: 11656 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 13 Nov 2018 11:03:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>