summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2011-08-16 14:47:38 +0000
committerOlle Johansson <oej@edvina.net>2011-08-16 14:47:38 +0000
commit4403a89f50f5f7c71fbcf78ba72d8d9af7514e91 (patch)
treed8492ec52d72304eab51e3e18b3b4d4953f02064
parent8f2e8d4b8a3a6cf96b41e2e0b20651d5ccc61478 (diff)
Formatting changes while working with DTMF...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@332024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_local.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 937ede4c2..f2de8e1c6 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -719,8 +719,9 @@ static int local_digit_begin(struct ast_channel *ast, char digit)
struct ast_frame f = { AST_FRAME_DTMF_BEGIN, };
int isoutbound;
- if (!p)
+ if (!p) {
return -1;
+ }
ao2_ref(p, 1); /* ref for local_queue_frame */
ao2_lock(p);
@@ -740,8 +741,9 @@ static int local_digit_end(struct ast_channel *ast, char digit, unsigned int dur
struct ast_frame f = { AST_FRAME_DTMF_END, };
int isoutbound;
- if (!p)
+ if (!p) {
return -1;
+ }
ao2_ref(p, 1); /* ref for local_queue_frame */
ao2_lock(p);
@@ -762,8 +764,9 @@ static int local_sendtext(struct ast_channel *ast, const char *text)
struct ast_frame f = { AST_FRAME_TEXT, };
int isoutbound;
- if (!p)
+ if (!p) {
return -1;
+ }
ao2_lock(p);
ao2_ref(p, 1); /* ref for local_queue_frame */
@@ -783,8 +786,9 @@ static int local_sendhtml(struct ast_channel *ast, int subclass, const char *dat
struct ast_frame f = { AST_FRAME_HTML, };
int isoutbound;
- if (!p)
+ if (!p) {
return -1;
+ }
ao2_lock(p);
ao2_ref(p, 1); /* ref for local_queue_frame */