summaryrefslogtreecommitdiff
path: root/mesh/mesh-config.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-08-29 13:22:45 -0700
committerBrian Gix <brian.gix@intel.com>2019-08-29 13:37:11 -0700
commit354d75d0ea68448cec05339811d9c5eb5057eac7 (patch)
tree28ce4984a10e47e0c5e22db71ef729a8fc9bb266 /mesh/mesh-config.h
parent50f5827544b2bde2cc8a198b2080829d885002e5 (diff)
downloadbluez-354d75d0ea68448cec05339811d9c5eb5057eac7.tar.gz
mesh: Add closedir() of config directory after opendir()
This adds missing closedir() call to accompany opendir() in mesh_config_load_nodes(). Also, fixes confusing mix of variable names.
Diffstat (limited to 'mesh/mesh-config.h')
-rw-r--r--mesh/mesh-config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/mesh-config.h b/mesh/mesh-config.h
index 4172e794b..cf1f8b299 100644
--- a/mesh/mesh-config.h
+++ b/mesh/mesh-config.h
@@ -110,13 +110,13 @@ typedef bool (*mesh_config_node_func_t)(struct mesh_config_node *node,
struct mesh_config *cfg,
void *user_data);
-bool mesh_config_load_nodes(const char *cfg_dir, mesh_config_node_func_t cb,
+bool mesh_config_load_nodes(const char *cfgdir_name, mesh_config_node_func_t cb,
void *user_data);
void mesh_config_release(struct mesh_config *cfg);
void mesh_config_destroy(struct mesh_config *cfg);
bool mesh_config_save(struct mesh_config *cfg, bool no_wait,
mesh_config_status_func_t cb, void *user_data);
-struct mesh_config *mesh_config_create(const char *cfg_path,
+struct mesh_config *mesh_config_create(const char *cfgdir_name,
const uint8_t uuid[16],
struct mesh_config_node *node);