aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_skel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-21 00:52:47 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-21 00:52:47 +0000
commita90ec2533f3d62f8a4ce9073046303c1e6ded1de (patch)
tree720b321da44e8cf16e4ab00582a0f7651d717fa3 /apps/app_skel.c
parentec0590611f9d5092ee7488a4b3b4d872782c6314 (diff)
minor cleanups (bug #4526 with text changes)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5945 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_skel.c')
-rwxr-xr-xapps/app_skel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_skel.c b/apps/app_skel.c
index ecd54aea5..9be8be8a4 100755
--- a/apps/app_skel.c
+++ b/apps/app_skel.c
@@ -28,10 +28,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/app.h"
static char *tdesc = "Trivial skeleton Application";
-static char *app = "skel";
+static char *app = "Skel";
static char *synopsis =
-" This is a skeleton application that shows you the basic structure to create your\n"
-"own asterisk applications.\n";
+"Skeleton application.";
+static char *descrip = "This application is a template to build other applications from.\n"
+ " It shows you the basic structure to create your own Asterisk applications.\n";
#define OPTION_A (1 << 0) /* Option A */
#define OPTION_B (1 << 1) /* Option B(n) */
@@ -71,13 +72,12 @@ static int app_exec(struct ast_channel *chan, void *data)
}
LOCAL_USER_ADD(u);
- if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(char *)))) {
+ if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
dummy = argv[0];
options = argv[1];
ast_parseoptions(app_opts, &flags, opts, options);
}
-
if (dummy && !ast_strlen_zero(dummy))
ast_log(LOG_NOTICE, "Dummy value is : %s\n", dummy);
@@ -103,7 +103,7 @@ int unload_module(void)
int load_module(void)
{
- return ast_register_application(app, app_exec, tdesc, synopsis);
+ return ast_register_application(app, app_exec, synopsis, descrip);
}
char *description(void)