Minor code cleanup in named_acl.c.

This patch makes a few little cleanups to named_acl.c.  A couple non-public
functions were made static and an opening brace for a function was moved to
its own line, per the coding guidelines.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2012-12-06 15:13:37 +00:00
parent 75827ca16b
commit ed72243022

View File

@@ -177,7 +177,7 @@ static void destroy_named_acl(void *obj)
* \retval NULL failure
*\retval non-NULL successfully allocated named ACL
*/
void *named_acl_alloc(const char *cat)
static void *named_acl_alloc(const char *cat)
{
struct named_acl *named_acl;
@@ -198,7 +198,7 @@ void *named_acl_alloc(const char *cat)
* \param cat name of the ACL wanted to be found
* \retval pointer to the named ACL if available. Null if not found.
*/
void *named_acl_find(struct ao2_container *container, const char *cat)
static void *named_acl_find(struct ao2_container *container, const char *cat)
{
struct named_acl tmp;
ast_copy_string(tmp.name, cat, sizeof(tmp.name));
@@ -309,7 +309,8 @@ static struct named_acl *named_acl_find_realtime(const char *name)
return acl;
}
struct ast_ha *ast_named_acl_find(const char *name, int *is_realtime, int *is_undefined) {
struct ast_ha *ast_named_acl_find(const char *name, int *is_realtime, int *is_undefined)
{
struct ast_ha *ha = NULL;
RAII_VAR(struct named_acl_config *, cfg, ao2_global_obj_ref(globals), ao2_cleanup);