summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-07-24 19:58:06 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-07-24 19:58:06 +0200
commitc0dbe0be056df7992800276cee01e106272ccd2b (patch)
tree010c31737f89e47be8cf13f99d6005dd9a744eab
parentb7b61236d8c598f3e7cebe61dcc925a33cf59374 (diff)
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.
-rw-r--r--include/osmocom/vty/command.h2
1 files changed, 1 insertions, 1 deletions
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