general: Very minor coding guideline fixes.

Fixes a few coding guideline violations:
* Use of C99 comments
* Opening brace on same line as function prototype

ASTERISK-30163 #close

Change-Id: I07771c4c89facd41ce8d323859f022ddbddf6ca7
This commit is contained in:
Naveen Albert
2022-07-28 21:12:09 +00:00
committed by Friendly Automation
parent 8a8416e365
commit e2e049e473
4 changed files with 4 additions and 5 deletions

View File

@@ -1283,7 +1283,8 @@ struct ast_flags *ast_channel_flags(struct ast_channel *chan)
return &chan->flags;
}
static int collect_names_cb(void *obj, void *arg, int flags) {
static int collect_names_cb(void *obj, void *arg, int flags)
{
struct ast_control_pvt_cause_code *cause_code = obj;
struct ast_str **str = arg;

View File

@@ -197,7 +197,6 @@ static int str_cmp(void *lhs, void *rhs, int flags)
return cmp ? 0 : CMP_MATCH;
}
//struct ao2_container *ast_str_container_alloc_options(enum ao2_container_opts opts, int buckets)
struct ao2_container *ast_str_container_alloc_options(enum ao2_alloc_opts opts, int buckets)
{
return ao2_container_alloc_hash(opts, 0, buckets, str_hash, str_sort, str_cmp);