<p>fixeria <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21553">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">core/linuxlist: do not use 'new' as a parameter name<br><br>'new' is a reserved keyword in C++, so including this header from<br>a C++ project (like osmo-pcu) breaks compilation.  Let's rename<br>it in the same way as it's already done in this file: add '_'.<br><br>Change-Id: I7f7d9143edca75ce932601386a8766b0a62c0e24<br>Fixes: I8ef73a62fe9846ce45058eb21cf999dd3eed5741<br>---<br>M include/osmocom/core/linuxlist.h<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h</span><br><span>index 2c3a0a4..5ccd462 100644</span><br><span>--- a/include/osmocom/core/linuxlist.h</span><br><span>+++ b/include/osmocom/core/linuxlist.h</span><br><span>@@ -579,11 +579,11 @@</span><br><span>  * reference of the first entry if it exists.</span><br><span>  */</span><br><span> static inline void hlist_move_list(struct hlist_head *old,</span><br><span style="color: hsl(0, 100%, 40%);">-                                 struct hlist_head *new)</span><br><span style="color: hsl(120, 100%, 40%);">+                               struct hlist_head *_new)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-        new->first = old->first;</span><br><span style="color: hsl(0, 100%, 40%);">-  if (new->first)</span><br><span style="color: hsl(0, 100%, 40%);">-              new->first->pprev = &new->first;</span><br><span style="color: hsl(120, 100%, 40%);">+ _new->first = old->first;</span><br><span style="color: hsl(120, 100%, 40%);">+       if (_new->first)</span><br><span style="color: hsl(120, 100%, 40%);">+           _new->first->pprev = &_new->first;</span><br><span>      old->first = NULL;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21553">change 21553</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/c/libosmocore/+/21553"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7f7d9143edca75ce932601386a8766b0a62c0e24 </div>
<div style="display:none"> Gerrit-Change-Number: 21553 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>