<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/22927">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: dont put a colon after vty_out in cfg_out macro<br><br>The cfg_out macro is used like a function in the code below its<br>definition. This means a colon will follow after it is used. When<br>the vty_out call in the macro already has a colon the final result will<br>be vty_out(...);;. This works fine as long the macro is not used in one<br>line if/else if/else constructs without curly braces {}. The compiler<br>will interpret the double colon as two lines of code and run into an<br>error then. Lets fix this by removing the colon from the vty_cout in the<br>macro.<br><br>Change-Id: I2c23c38ce892067add0f95f3e504a9c559e24519<br>---<br>M src/common/vty.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/27/22927/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/vty.c b/src/common/vty.c</span><br><span>index f2c7954..d60a2be 100644</span><br><span>--- a/src/common/vty.c</span><br><span>+++ b/src/common/vty.c</span><br><span>@@ -1240,7 +1240,7 @@</span><br><span> </span><br><span> /* TODO: generalize and move indention handling to libosmocore */</span><br><span> #define cfg_out(vty, fmt, args...) \</span><br><span style="color: hsl(0, 100%, 40%);">-     vty_out(vty, "%*s" fmt, indent, "", ##args);</span><br><span style="color: hsl(120, 100%, 40%);">+      vty_out(vty, "%*s" fmt, indent, "", ##args)</span><br><span> </span><br><span> static void dump_dpc_meas_params(struct vty *vty, const unsigned int indent,</span><br><span>                           const struct gsm_power_ctrl_meas_params *mp,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/22927">change 22927</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/osmo-bts/+/22927"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2c23c38ce892067add0f95f3e504a9c559e24519 </div>
<div style="display:none"> Gerrit-Change-Number: 22927 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>