[svn-commits] russell: trunk r377330 - /trunk/main/named_acl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 6 09:13:42 CST 2012


Author: russell
Date: Thu Dec  6 09:13:37 2012
New Revision: 377330

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377330
Log:
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.

Modified:
    trunk/main/named_acl.c

Modified: trunk/main/named_acl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/named_acl.c?view=diff&rev=377330&r1=377329&r2=377330
==============================================================================
--- trunk/main/named_acl.c (original)
+++ trunk/main/named_acl.c Thu Dec  6 09:13:37 2012
@@ -177,7 +177,7 @@
  * \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 @@
  * \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 @@
 	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);




More information about the svn-commits mailing list