mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
refactor: "config_parse_cli"=> "config_read_cli"
This commit is contained in:
parent
6a48333f72
commit
3c4bca7cf8
4 changed files with 4 additions and 4 deletions
|
@ -34,4 +34,4 @@ json_t * config_to_json(config_setting_t *cfg);
|
|||
int json_to_config(json_t *json, config_setting_t *parent);
|
||||
|
||||
/* Create a libconfig object from command line parameters. */
|
||||
int config_parse_cli(config_t *cfg, int argc, char *argv[]);
|
||||
int config_read_cli(config_t *cfg, int argc, char *argv[]);
|
||||
|
|
|
@ -139,7 +139,7 @@ int json_to_config(json_t *json, config_setting_t *parent)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int config_parse_cli(config_t *cfg, int argc, char *argv[])
|
||||
int config_read_cli(config_t *cfg, int argc, char *argv[])
|
||||
{
|
||||
int ret;
|
||||
char *str = NULL;
|
||||
|
|
|
@ -88,7 +88,7 @@ int hook_parse_cli(struct hook *h, int argc, char *argv[])
|
|||
|
||||
config_init(&cfg);
|
||||
|
||||
ret = config_parse_cli(&cfg, argc, argv);
|
||||
ret = config_read_cli(&cfg, argc, argv);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ int node_parse_cli(struct node *n, int argc, char *argv[])
|
|||
|
||||
config_init(&cfg);
|
||||
|
||||
ret = config_parse_cli(&cfg, argc, argv);
|
||||
ret = config_read_cli(&cfg, argc, argv);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue