From: Michael Brown Date: Mon, 22 Nov 2010 21:11:03 +0000 (+0000) Subject: [settings] Allow "set" command to take an empty value X-Git-Tag: v1.20.1~2393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a180c7526caeb849d04d5f83ac55226920d26b54;p=thirdparty%2Fipxe.git [settings] Allow "set" command to take an empty value Allow "set " 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 ". Signed-off-by: Michael Brown --- diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c index 87bdd8a16..3513c8deb 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, " ", "" ); /**