[asterisk-commits] file: trunk r83157 - /trunk/apps/app_db.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 19 12:22:43 CDT 2007
Author: file
Date: Wed Sep 19 12:22:42 2007
New Revision: 83157
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83157
Log:
Fix indentation in app_db.
Modified:
trunk/apps/app_db.c
Modified: trunk/apps/app_db.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_db.c?view=diff&rev=83157&r1=83156&r2=83157
==============================================================================
--- trunk/apps/app_db.c (original)
+++ trunk/apps/app_db.c Wed Sep 19 12:22:42 2007
@@ -68,28 +68,28 @@
static int deltree_exec(struct ast_channel *chan, void *data)
{
char *argv, *family, *keytree;
-
+
argv = ast_strdupa(data);
-
+
if (strchr(argv, '/')) {
family = strsep(&argv, "/");
keytree = strsep(&argv, "\0");
- if (!family || !keytree) {
- ast_debug(1, "Ignoring; Syntax error in argument\n");
- return 0;
- }
+ if (!family || !keytree) {
+ ast_debug(1, "Ignoring; Syntax error in argument\n");
+ return 0;
+ }
if (ast_strlen_zero(keytree))
keytree = 0;
} else {
family = argv;
keytree = 0;
}
-
- if (keytree)
+
+ if (keytree)
ast_verb(3, "DBdeltree: family=%s, keytree=%s\n", family, keytree);
- else
+ else
ast_verb(3, "DBdeltree: family=%s\n", family);
-
+
if (ast_db_deltree(family, keytree))
ast_verb(3, "DBdeltree: Error deleting key from database.\n");
@@ -100,14 +100,14 @@
{
char *argv, *family, *key;
static int deprecation_warning = 0;
-
+
if (!deprecation_warning) {
deprecation_warning = 1;
ast_log(LOG_WARNING, "The DBdel application has been deprecated in favor of the DB_DELETE dialplan function!\n");
}
-
+
argv = ast_strdupa(data);
-
+
if (strchr(argv, '/')) {
family = strsep(&argv, "/");
key = strsep(&argv, "\0");
More information about the asterisk-commits
mailing list