diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 03:41:10 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 03:41:10 +0000 |
commit | 99212965774bb9814fa7ac489d68986d2cc2e424 (patch) | |
tree | 4c0592dd5109514856f54e6110f3afae55e6ed79 /include | |
parent | f771d4bb5d19d138b9134ef3ea477616c3672b1e (diff) |
fix application options that take arguments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7020 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/app.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 3c9c49e48..ef74f6543 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -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. |