fix application options that take arguments

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-11-08 03:41:10 +00:00
parent a4be983a63
commit 869ae80f16
2 changed files with 13 additions and 1 deletions

View File

@@ -323,7 +323,7 @@ struct ast_app_option {
\sa AST_APP_OPTIONS, ast_app_parse_options
*/
#define AST_APP_OPTION_ARG(option, flagno, argno) \
[option] = { .flag = flagno, .arg_index = argno }
[option] = { .flag = flagno, .arg_index = argno + 1 }
/*!
\brief Parses a string containing application options and sets flags/arguments.