Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv2212/apps

Modified Files:
        app_skel.c 
Log Message:
minor cleanups (bug #4526 with text changes)


Index: app_skel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_skel.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- app_skel.c  6 Jun 2005 22:39:32 -0000       1.11
+++ app_skel.c  21 Jun 2005 00:52:47 -0000      1.12
@@ -28,10 +28,11 @@
 #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 @@
        }
 
        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 load_module(void)
 {
-       return ast_register_application(app, app_exec, tdesc, synopsis);
+       return ast_register_application(app, app_exec, synopsis, descrip);
 }
 
 char *description(void)

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to