summaryrefslogtreecommitdiff
path: root/src/common/HPM.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-16 18:07:52 +0100
committerHaru <haru@dotalux.com>2016-02-17 10:40:44 +0100
commit03a5c603be2cf6d5feea9012029f8899c624557a (patch)
tree80c98e0f160700d7441c2642cd7489f7b8645177 /src/common/HPM.c
parent28588859a64fb03335ca5e4083fb6ad95d88db6e (diff)
downloadhercules-03a5c603be2cf6d5feea9012029f8899c624557a.tar.gz
hercules-03a5c603be2cf6d5feea9012029f8899c624557a.tar.bz2
hercules-03a5c603be2cf6d5feea9012029f8899c624557a.tar.xz
hercules-03a5c603be2cf6d5feea9012029f8899c624557a.zip
Removed unnecessary typedefs from libconfig
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.c')
-rw-r--r--src/common/HPM.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index 0cb23019a..f115c886e 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -616,8 +616,8 @@ CMDLINEARG(loadplugin)
* Reads the plugin configuration and loads the plugins as necessary.
*/
void hplugins_config_read(void) {
- config_t plugins_conf;
- config_setting_t *plist = NULL;
+ struct config_t plugins_conf;
+ struct config_setting_t *plist = NULL;
const char *config_filename = "conf/plugins.conf"; // FIXME hardcoded name
FILE *fp;
int i;
@@ -633,7 +633,7 @@ void hplugins_config_read(void) {
plist = libconfig->lookup(&plugins_conf, "plugins_list");
for (i = 0; i < VECTOR_LENGTH(HPM->cmdline_load_plugins); i++) {
- config_setting_t *entry = libconfig->setting_add(plist, NULL, CONFIG_TYPE_STRING);
+ struct config_setting_t *entry = libconfig->setting_add(plist, NULL, CONFIG_TYPE_STRING);
config_setting_set_string(entry, VECTOR_INDEX(HPM->cmdline_load_plugins, i));
}