[asterisk-commits] branch 1.2 r23899 - /branches/1.2/apps/app_skel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 1 03:45:42 MST 2006


Author: kpfleming
Date: Mon May  1 05:45:42 2006
New Revision: 23899

URL: http://svn.digium.com/view/asterisk?rev=23899&view=rev
Log:
fix this to actually compile so people can learn from it

Modified:
    branches/1.2/apps/app_skel.c

Modified: branches/1.2/apps/app_skel.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_skel.c?rev=23899&r1=23898&r2=23899&view=diff
==============================================================================
--- branches/1.2/apps/app_skel.c (original)
+++ branches/1.2/apps/app_skel.c Mon May  1 05:45:42 2006
@@ -53,7 +53,7 @@
 #define OPTION_C	(1 << 2)	/* Option C(str) */
 #define OPTION_NULL	(1 << 3)	/* Dummy Termination */
 
-AST_DECLARE_OPTIONS(app_opts,{
+AST_APP_OPTIONS(app_opts,{
 	['a'] = { OPTION_A },
 	['b'] = { OPTION_B, 1 },
 	['c'] = { OPTION_C, 2 }
@@ -95,7 +95,7 @@
 	if ((argc = ast_app_separate_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
 		dummy = argv[0];
 		options = argv[1];
-		ast_parseoptions(app_opts, &flags, opts, options);
+		ast_app_parse_options(app_opts, &flags, opts, options);
 	}
 
 	if (!ast_strlen_zero(dummy)) 



More information about the asterisk-commits mailing list