<p style="white-space: pre-wrap; word-wrap: break-word;">Minor issue that these extracted functions are internal helper routines that do not need to be made public.</p><p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/9970">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.asterisk.org/#/c/9970/3//COMMIT_MSG">Commit Message:</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.asterisk.org/#/c/9970/3//COMMIT_MSG@10">Patch Set #3, Line 10:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Consolidate the loop into<br>a function, and make this available to other modules that may have the<br>same requirements, and drop the debug/verbose message.<br><br>There is a continue on allocation failure (remnant from original loop)<br>that simply skips over memory allocations.  There is no feedback to the<br>caller about this which may be a problem.<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Since these are internal helper functions where the caller's don't care about the allocation failures, this is a non-issue and other modules should not be allowed access.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/9970/3/include/asterisk/manager.h">File include/asterisk/manager.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.asterisk.org/#/c/9970/3/include/asterisk/manager.h@275">Patch Set #3, Line 275:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">*!  * \brief Append additional headers into the message structure from params.  */<br>void astman_append_headers(struct message *m, const struct ast_variable *params);<br><br>/*!  * \brief Free headers inside message structure, but not the message structure itself.  */<br>void astman_free_headers(struct message *m);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">These are internal helper functions so they should not be made public.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/9970/3/main/manager.c">File main/manager.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.asterisk.org/#/c/9970/3/main/manager.c@2810">Patch Set #3, Line 2810:</a> <code style="font-family:monospace,monospace">void astman_append_headers(struct message *m, const struct ast_variable *params)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Make a static function.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9970/3/main/manager.c@2830">Patch Set #3, Line 2830:</a> <code style="font-family:monospace,monospace">void astman_free_headers(struct message *m)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Make a static function.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9970">change 9970</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/9970"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ic45e673fde05bd544be95ad5cdbc69518207c1a1 </div>
<div style="display:none"> Gerrit-Change-Number: 9970 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 22 Aug 2018 22:04:26 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>