aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_skel.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-16 22:36:08 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-16 22:36:08 +0000
commitdab8c5affc0941755ae3aa8cb43a796f5346f853 (patch)
tree211bc82384998702124f613fa34997122ffdf831 /apps/app_skel.c
parent1db365288ba8b35220bf9a07d91f19d142527fdc (diff)
Updating app_skel.c to follow coding guidelines
with regards to braces used on if statements. (closes issue #13696) Reported by: alecdavis Patches: app_skel.bug13696B.115850.diff.txt uploaded by alecdavis (license 585) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150255 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_skel.c')
-rw-r--r--apps/app_skel.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/apps/app_skel.c b/apps/app_skel.c
index 588563d2f..44bf152aa 100644
--- a/apps/app_skel.c
+++ b/apps/app_skel.c
@@ -14,6 +14,9 @@
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
+ *
+ * Please follow coding guidelines
+ * http://svn.digium.com/view/asterisk/trunk/doc/CODING-GUIDELINES
*/
/*! \file
@@ -89,20 +92,25 @@ static int app_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse);
- if (args.argc == 2)
+ if (args.argc == 2) {
ast_app_parse_options(app_opts, &flags, opts, args.options);
+ }
- if (!ast_strlen_zero(args.dummy))
+ if (!ast_strlen_zero(args.dummy)) {
ast_log(LOG_NOTICE, "Dummy value is : %s\n", args.dummy);
+ }
- if (ast_test_flag(&flags, OPTION_A))
+ if (ast_test_flag(&flags, OPTION_A)) {
ast_log(LOG_NOTICE, "Option A is set\n");
+ }
- if (ast_test_flag(&flags, OPTION_B))
+ if (ast_test_flag(&flags, OPTION_B)) {
ast_log(LOG_NOTICE, "Option B is set with : %s\n", opts[OPTION_ARG_B] ? opts[OPTION_ARG_B] : "<unspecified>");
+ }
- if (ast_test_flag(&flags, OPTION_C))
+ if (ast_test_flag(&flags, OPTION_C)) {
ast_log(LOG_NOTICE, "Option C is set with : %s\n", opts[OPTION_ARG_C] ? opts[OPTION_ARG_C] : "<unspecified>");
+ }
return res;
}