From c0dbe0be056df7992800276cee01e106272ccd2b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 24 Jul 2011 19:58:06 +0200 Subject: vty: Increase the number of arguments one can have in VTY commands 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/osmocom/vty') diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index a6c2c5c4..783a7a2d 100644 --- a/include/osmocom/vty/command.h +++ b/include/osmocom/vty/command.h @@ -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 -- cgit v1.2.3