diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 10:45:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-01 10:45:42 +0000 |
commit | 3ad80589776fbd4dfc612850903d07b2a837af9e (patch) | |
tree | a65475e4da8f73698a4f8a97d01a04c44ae3b736 /apps | |
parent | 2098b6f560c3d5d90b9a36a13b901c2262eae8dc (diff) |
fix this to actually compile so people can learn from it
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@23899 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_skel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_skel.c b/apps/app_skel.c index 9fb2e757a..46e94afb4 100644 --- a/apps/app_skel.c +++ b/apps/app_skel.c @@ -53,7 +53,7 @@ static char *descrip = "This application is a template to build other applicatio #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 @@ static int app_exec(struct ast_channel *chan, void *data) 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)) |