aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_db.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-19 17:22:42 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-19 17:22:42 +0000
commit9d16bb6660a813f2d763df8c2396a49004e986b3 (patch)
treede475751c2bc1691a69601f642e84dcfd4b5c1c6 /apps/app_db.c
parent242489940ab1e8d0fc8e02df084015d3b8aa289c (diff)
Fix indentation in app_db.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83157 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_db.c')
-rw-r--r--apps/app_db.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/app_db.c b/apps/app_db.c
index f7d2ceaf5..573ecb4ae 100644
--- a/apps/app_db.c
+++ b/apps/app_db.c
@@ -68,28 +68,28 @@ static char *dt_synopsis = "Delete a family or keytree from the database";
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 @@ static int del_exec(struct ast_channel *chan, void *data)
{
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");