vty: Increase the number of arguments one can have in VTY commands
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 24 Jul 2011 17:58:06 +0000 (19:58 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 24 Jul 2011 17:58:06 +0000 (19:58 +0200)
For some interactive commands (e.g. sending a SMS in OpenBSC) we
are using the "NAME." arg definition. For the usecase of sending SMS
it is not enough to only allow about 13 spaces. Increase the limit.

Original patch is coming from Dennis Wehrle.

include/osmocom/vty/command.h

index a6c2c5c..783a7a2 100644 (file)
@@ -137,7 +137,7 @@ struct desc {
 #define CMD_SUCCESS_DAEMON      10
 
 /* Argc max counts. */
-#define CMD_ARGC_MAX   25
+#define CMD_ARGC_MAX   256
 
 /* Turn off these macros when uisng cpp with extract.pl */
 #ifndef VTYSH_EXTRACT_PL