summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2010-11-22 22:11:03 +0100
committerMichael Brown2010-11-22 22:14:11 +0100
commita180c7526caeb849d04d5f83ac55226920d26b54 (patch)
tree032d8edbafb2eec491e33a29a5aaa5bd44182194
parent[autoboot] Merge "netboot" command into "autoboot" (diff)
downloadipxe-a180c7526caeb849d04d5f83ac55226920d26b54.tar.gz
ipxe-a180c7526caeb849d04d5f83ac55226920d26b54.tar.xz
ipxe-a180c7526caeb849d04d5f83ac55226920d26b54.zip
[settings] Allow "set" command to take an empty value
Allow "set <variable>" to be used to set the variable to an empty value, if permitted by the setting type. Note that some settings backends do not differentiate between an empty value and a non-existent value, so this may or may not be equivalent to "clear <variable>". Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/hci/commands/nvo_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c
index 87bdd8a1..3513c8de 100644
--- a/src/hci/commands/nvo_cmd.c
+++ b/src/hci/commands/nvo_cmd.c
@@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {};
/** "set" command descriptor */
static struct command_descriptor set_cmd =
- COMMAND_DESC ( struct set_options, set_opts, 2, MAX_ARGUMENTS,
+ COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS,
"<setting> <value>", "" );
/**