<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13536">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty/talloc_ctx_vty.c: use REG_NOSUB flag of regcomp()<br><br>We don't need to know position of matches: just yes or no.<br>This change would save some computation power.<br><br>Change-Id: Id55ffe64cc1a35dd83f61dbb0f9828aa676696f9<br>---<br>M src/vty/talloc_ctx_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/libosmocore refs/changes/36/13536/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/talloc_ctx_vty.c b/src/vty/talloc_ctx_vty.c</span><br><span>index c4d5a88..16cb763 100644</span><br><span>--- a/src/vty/talloc_ctx_vty.c</span><br><span>+++ b/src/vty/talloc_ctx_vty.c</span><br><span>@@ -199,7 +199,7 @@</span><br><span>  int rc;</span><br><span> </span><br><span>  /* Attempt to compile a regular expression */</span><br><span style="color: hsl(0, 100%, 40%);">-   rc = regcomp(&params.regexp, argv[2], 0);</span><br><span style="color: hsl(120, 100%, 40%);">+ rc = regcomp(&params.regexp, argv[2], REG_NOSUB);</span><br><span>        if (rc) {</span><br><span>            vty_out(vty, "Invalid expression%s", VTY_NEWLINE);</span><br><span>                 return CMD_WARNING;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13536">change 13536</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/13536"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id55ffe64cc1a35dd83f61dbb0f9828aa676696f9 </div>
<div style="display:none"> Gerrit-Change-Number: 13536 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>