diff options
author | Michael Brown | 2013-07-18 16:30:00 +0200 |
---|---|---|
committer | Michael Brown | 2013-07-22 17:16:44 +0200 |
commit | 46433f9b5eb917e6ad90ffaa169febdfcf78270f (patch) | |
tree | 022ddd055a424770d7af538e5ea2b75241e07fe9 /src/hci/commands | |
parent | [parseopt] Allow parsed option to be modified (diff) | |
download | ipxe-46433f9b5eb917e6ad90ffaa169febdfcf78270f.tar.gz ipxe-46433f9b5eb917e6ad90ffaa169febdfcf78270f.tar.xz ipxe-46433f9b5eb917e6ad90ffaa169febdfcf78270f.zip |
[parseopt] Move parse_settings() to parseopt.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/commands')
-rw-r--r-- | src/hci/commands/config_cmd.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c index f1fb567c..b81c866f 100644 --- a/src/hci/commands/config_cmd.c +++ b/src/hci/commands/config_cmd.c @@ -45,28 +45,6 @@ static struct command_descriptor config_cmd = COMMAND_DESC ( struct config_options, config_opts, 0, 1, "[<scope>]" ); /** - * Parse settings scope name - * - * @v text Text - * @ret value Integer value - * @ret rc Return status code - */ -static int parse_settings ( const char *text, struct settings **value ) { - - /* Sanity check */ - assert ( text != NULL ); - - /* Parse scope name */ - *value = find_settings ( text ); - if ( ! *value ) { - printf ( "\"%s\": no such scope\n", text ); - return -EINVAL; - } - - return 0; -} - -/** * "config" command * * @v argc Argument count |