From 46433f9b5eb917e6ad90ffaa169febdfcf78270f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 18 Jul 2013 15:30:00 +0100 Subject: [parseopt] Move parse_settings() to parseopt.c Signed-off-by: Michael Brown --- src/hci/commands/config_cmd.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/hci/commands/config_cmd.c') diff --git a/src/hci/commands/config_cmd.c b/src/hci/commands/config_cmd.c index f1fb567c2..b81c866ff 100644 --- a/src/hci/commands/config_cmd.c +++ b/src/hci/commands/config_cmd.c @@ -44,28 +44,6 @@ static struct option_descriptor config_opts[] = {}; static struct command_descriptor config_cmd = COMMAND_DESC ( struct config_options, config_opts, 0, 1, "[]" ); -/** - * 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 * -- cgit v1.2.3-55-g7522