[PATCH 11/13] vshCmddefCheckInternals: Remove check for "too many options"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This check was needed due to the use "unsigned long long" as bitmap
which was refactored recently.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tools/vsh.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tools/vsh.c b/tools/vsh.c
index 30cbf4c0dc..3cd9202a8a 100644
--- a/tools/vsh.c
+++ b/tools/vsh.c
@@ -327,11 +327,6 @@ vshCmddefCheckInternals(vshControl *ctl,
     for (i = 0; cmd->opts[i].name; i++) {
         const vshCmdOptDef *opt = &cmd->opts[i];

-        if (i > 63) {
-            vshError(ctl, "command '%s' has too many options", cmd->name);
-            return -1; /* too many options */
-        }
-
         if (missingCompleters && !opt->completer) {
             switch (opt->type) {
             case VSH_OT_STRING:
-- 
2.44.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux