[asterisk-commits] eliel: branch eliel/cli-permissions r151977 - /team/eliel/cli-permissions/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Oct 25 12:27:31 CDT 2008


Author: eliel
Date: Sat Oct 25 12:27:30 2008
New Revision: 151977

URL: http://svn.digium.com/view/asterisk?view=rev&rev=151977
Log:
Fix minor naming convention

Modified:
    team/eliel/cli-permissions/main/asterisk.c
    team/eliel/cli-permissions/main/cli.c

Modified: team/eliel/cli-permissions/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/main/asterisk.c?view=diff&rev=151977&r1=151976&r2=151977
==============================================================================
--- team/eliel/cli-permissions/main/asterisk.c (original)
+++ team/eliel/cli-permissions/main/asterisk.c Sat Oct 25 12:27:30 2008
@@ -3456,7 +3456,8 @@
 		printf("%s", term_quit());
 		exit(1);
 	}
-	/* loads the permissoins.conf file needed to implement cli restrictions. */
+
+	/* loads the cli_permissoins.conf file needed to implement cli restrictions. */
 	ast_cli_perms_init(0);
 
 	/* AMI is initialized after loading modules because of a potential

Modified: team/eliel/cli-permissions/main/cli.c
URL: http://svn.digium.com/view/asterisk/team/eliel/cli-permissions/main/cli.c?view=diff&rev=151977&r1=151976&r2=151977
==============================================================================
--- team/eliel/cli-permissions/main/cli.c (original)
+++ team/eliel/cli-permissions/main/cli.c Sat Oct 25 12:27:30 2008
@@ -883,7 +883,7 @@
 }
 
 /*! \brief handles CLI command 'cli show permissions' */
-static char *handle_cli_permissions_show(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
+static char *handle_cli_show_permissions(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
 	struct usergroup_cli_perm *cp;
 	struct cli_perm *perm;
@@ -928,7 +928,7 @@
 }
 
 /*! \brief handles CLI command 'cli reload permissions' */
-static char *handle_cli_permissions_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
+static char *handle_cli_reload_permissions(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
 	switch (cmd) {
 	case CLI_INIT:
@@ -947,7 +947,7 @@
 }
 
 /*! \brief handles CLI command 'cli check permissions' */
-static char *handle_cli_permissions_check(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
+static char *handle_cli_check_permissions(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
 	struct passwd *pw = NULL;
 	struct group *gr;
@@ -1465,11 +1465,11 @@
 
 	AST_CLI_DEFINE(handle_softhangup, "Request a hangup on a given channel"),
 
-	AST_CLI_DEFINE(handle_cli_permissions_reload, "Reload CLI permissions config"),
-
-	AST_CLI_DEFINE(handle_cli_permissions_show, "Show CLI permissions"),
-
-	AST_CLI_DEFINE(handle_cli_permissions_check, "Try a permissions config for a user"),
+	AST_CLI_DEFINE(handle_cli_reload_permissions, "Reload CLI permissions config"),
+
+	AST_CLI_DEFINE(handle_cli_show_permissions, "Show CLI permissions"),
+
+	AST_CLI_DEFINE(handle_cli_check_permissions, "Try a permissions config for a user"),
 };
 
 /*!




More information about the asterisk-commits mailing list