diff options
author | Haru <haru@dotalux.com> | 2016-02-16 18:07:52 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-17 10:40:44 +0100 |
commit | 03a5c603be2cf6d5feea9012029f8899c624557a (patch) | |
tree | 80c98e0f160700d7441c2642cd7489f7b8645177 /src/map/battleground.c | |
parent | 28588859a64fb03335ca5e4083fb6ad95d88db6e (diff) | |
download | hercules-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/map/battleground.c')
-rw-r--r-- | src/map/battleground.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c index 995122d52..d25aef851 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -330,8 +330,8 @@ enum bg_queue_types bg_str2teamtype (const char *str) { } void bg_config_read(void) { - config_t bg_conf; - config_setting_t *data = NULL; + struct config_t bg_conf; + struct config_setting_t *data = NULL; const char *config_filename = "conf/battlegrounds.conf"; // FIXME hardcoded name if (!libconfig->load_file(&bg_conf, config_filename)) @@ -340,8 +340,8 @@ void bg_config_read(void) { data = libconfig->lookup(&bg_conf, "battlegrounds"); if (data != NULL) { - config_setting_t *settings = libconfig->setting_get_elem(data, 0); - config_setting_t *arenas; + struct config_setting_t *settings = libconfig->setting_get_elem(data, 0); + struct config_setting_t *arenas; const char *delay_var; int offline = 0; @@ -361,8 +361,8 @@ void bg_config_read(void) { int arena_count = libconfig->setting_length(arenas); CREATE( bg->arena, struct bg_arena *, arena_count ); for(i = 0; i < arena_count; i++) { - config_setting_t *arena = libconfig->setting_get_elem(arenas, i); - config_setting_t *reward; + struct config_setting_t *arena = libconfig->setting_get_elem(arenas, i); + struct config_setting_t *reward; const char *aName, *aEvent, *aDelayVar, *aTeamTypes; int minLevel = 0, maxLevel = 0; int prizeWin, prizeLoss, prizeDraw; |