<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/7988">View Change</a></p><p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why is this built-in module stuff even needed?  Core built-in modules are always available.</p><p>(4 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/7988/2/main/loader.c">File main/loader.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7988/2/main/loader.c@115">Patch Set #2, Line 115:</a> <code style="font-family:monospace,monospace">/* Built-in module registrations need special handling at startup*/</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">s/startup*\//startup *\//</p><p style="white-space: pre-wrap; word-wrap: break-word;">i.e. insert space before comment close.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7988/2/main/loader.c@414">Patch Set #2, Line 414:</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;">/*<br> * module_list is cleared by its constructor possibly after<br> * we start accumulating built-in modules, so we need to<br> * use another list (without the lock) to accumulate them.<br> */<br>static struct module_list builtin_module_list;<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Move this just after module_list's declaration.  The comment makes more sense when in closer proximity to module_list; especially the reference to the module_list having a lock.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7988/2/main/loader.c@467">Patch Set #2, Line 467:</a> <code style="font-family:monospace,monospace">              strcpy(mod->resource, info->name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Append: /* safe */</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/7988/2/main/loader.c@468">Patch Set #2, Line 468:</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;">                AST_DLLIST_INSERT_TAIL(&builtin_module_list, mod, entry);<br>         mod->info = info;<br>          mod->flags.builtin = 1;<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">For consistency and maybe sanity we should finish initializing mod before we stick it into the list.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/7988">change 7988</a>. To unsubscribe, 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/7988"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I920852bc17513a9c2627061a4ad40511e3a20499 </div>
<div style="display:none"> Gerrit-Change-Number: 7988 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 17 Jan 2018 23:35:22 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>