From 3c4bca7cf8c44c0172d58b682d6b7db61a3f95da Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 23 Jul 2017 16:15:43 +0200 Subject: [PATCH] refactor: "config_parse_cli"=> "config_read_cli" --- include/villas/config_helper.h | 2 +- lib/config_helper.c | 2 +- lib/hook.c | 2 +- lib/node.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/villas/config_helper.h b/include/villas/config_helper.h index 125f5b023..423ac7dcb 100644 --- a/include/villas/config_helper.h +++ b/include/villas/config_helper.h @@ -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[]); diff --git a/lib/config_helper.c b/lib/config_helper.c index 82aa65791..ea6e7bd38 100644 --- a/lib/config_helper.c +++ b/lib/config_helper.c @@ -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; diff --git a/lib/hook.c b/lib/hook.c index 090c3c051..f286b2dc3 100644 --- a/lib/hook.c +++ b/lib/hook.c @@ -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; diff --git a/lib/node.c b/lib/node.c index da9812ebd..c8a2c43e9 100644 --- a/lib/node.c +++ b/lib/node.c @@ -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;