[Asterisk-cvs] asterisk/include/asterisk app.h,1.44,1.45

russell russell
Mon Nov 7 22:50:05 CST 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv15507/include/asterisk

Modified Files:
	app.h 
Log Message:
fix application options that take arguments


Index: app.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/app.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- app.h	6 Nov 2005 15:09:47 -0000	1.44
+++ app.h	8 Nov 2005 03:41:10 -0000	1.45
@@ -323,7 +323,7 @@
   \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.




More information about the svn-commits mailing list