aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 03:41:10 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 03:41:10 +0000
commit99212965774bb9814fa7ac489d68986d2cc2e424 (patch)
tree4c0592dd5109514856f54e6110f3afae55e6ed79 /include
parentf771d4bb5d19d138b9134ef3ea477616c3672b1e (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-xinclude/asterisk/app.h2
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.