<p> Attention is currently required from: Mark Murawski. </p>
<p>Patch set 21:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17655">View Change</a></p><p>8 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File funcs/func_groupcount.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/asterisk/+/17655/comment/e8ba56c5_9297dca4">Patch Set #21, Line 1186:</a> <code style="font-family:monospace,monospace">        buf[1] = '\0';</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">whitespace issue</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/f76c9965_37698c35">Patch Set #21, Line 1253:</a> <code style="font-family:monospace,monospace">   snprintf(groups_ret, sizeof(groups_ret), "%d", groups);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Couldn't you just snprintf into buf directly? Why the intermediate buffer?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/7051e55d_a9982fa5">Patch Set #21, Line 1419:</a> <code style="font-family:monospace,monospace">            return 0;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This should return -1</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File main/app.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/asterisk/+/17655/comment/87880186_763f294f">Patch Set #21, Line 2423:</a> <code style="font-family:monospace,monospace">int ast_app_group_set_var(struct ast_channel *chan, const char *group, const char *category, const char *name, const char *value) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Opening brace should be on a separate line</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/39023dee_7d6862a9">Patch Set #21, Line 2431:</a> <code style="font-family:monospace,monospace">            return 0;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I see in the documentation we return 0 on failure and 1 on success, but why is that?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/f0795020_a7e3a253">Patch Set #21, Line 2444:</a> <code style="font-family:monospace,monospace">      AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups_meta, gmi, group_meta_list) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">!= 0 is unnecessary here</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/00cf3831_611f2210">Patch Set #21, Line 2479:</a> <code style="font-family:monospace,monospace">   if (newvariable == NULL) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Could just do !newvariable</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/17655/comment/9dccac02_7ce47c38">Patch Set #21, Line 2854:</a> <code style="font-family:monospace,monospace">int ast_app_group_meta_wrlock(void)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I must be missing something, but why are these functions here? I see them in the header file, and here, why are they needed?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17655">change 17655</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/c/asterisk/+/17655"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I23e48d1cdfc8adaffdfec2e936e56143603914f2 </div>
<div style="display:none"> Gerrit-Change-Number: 17655 </div>
<div style="display:none"> Gerrit-PatchSet: 21 </div>
<div style="display:none"> Gerrit-Owner: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-CC: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Attention: Mark Murawski <markm@intellasoft.net> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 14 Jan 2023 20:42:50 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>