<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/20287">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: cosmetic: use osmo_talloc_replace_string()<br><br>Change-Id: Ic195cef2aafec55d37152045f7714335ded0a62b<br>---<br>M src/common/vty.c<br>1 file changed, 2 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/87/20287/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 36b0eaf..dd83a11 100644</span><br><span>--- a/src/common/vty.c</span><br><span>+++ b/src/common/vty.c</span><br><span>@@ -637,13 +637,9 @@</span><br><span> {</span><br><span>        struct gsm_bts *bts = vty->index;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        if (bts->pcu.sock_path) {</span><br><span style="color: hsl(0, 100%, 40%);">-            /* FIXME: close the interface? */</span><br><span style="color: hsl(0, 100%, 40%);">-               talloc_free(bts->pcu.sock_path);</span><br><span style="color: hsl(0, 100%, 40%);">-     }</span><br><span style="color: hsl(0, 100%, 40%);">-       bts->pcu.sock_path = talloc_strdup(bts, argv[0]);</span><br><span style="color: hsl(0, 100%, 40%);">-    /* FIXME: re-open the interface? */</span><br><span style="color: hsl(120, 100%, 40%);">+   osmo_talloc_replace_string(bts, &bts->pcu.sock_path, argv[0]);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+     /* FIXME: re-open the interface? */</span><br><span>  return CMD_SUCCESS;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/20287">change 20287</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/+/20287"/><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: Ic195cef2aafec55d37152045f7714335ded0a62b </div>
<div style="display:none"> Gerrit-Change-Number: 20287 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>