restrict to only one block-arg (as last) param per command

This commit is contained in:
BVK Chaitanya 2010-07-21 03:47:30 +05:30
parent 15ee6f9dc7
commit 9ebedc24f2
8 changed files with 31 additions and 71 deletions

View file

@ -25,7 +25,7 @@
grub_err_t
grub_extcmd_dispatcher (struct grub_command *cmd, int argc, char **args,
struct grub_script **scripts)
struct grub_script *script)
{
int new_argc;
char **new_args;
@ -38,7 +38,7 @@ grub_extcmd_dispatcher (struct grub_command *cmd, int argc, char **args,
context.state = 0;
context.extcmd = ext;
context.script_params = scripts;
context.script = script;
/* Dynamic commands should not perform option parsing before
corresponding module gets loaded. */