diff options
author | Haru <haru@dotalux.com> | 2016-02-20 21:13:19 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-20 18:32:09 +0100 |
commit | 787d25edf045de8df1460a6a975186df0f8d402f (patch) | |
tree | 24c1597db832c93cf0c32840868028de0dea9192 /3rdparty/libconfig/libconfig.h | |
parent | ddbaad9bbab30490a6b23ef74203f30d290aa17c (diff) | |
download | hercules-787d25edf045de8df1460a6a975186df0f8d402f.tar.gz hercules-787d25edf045de8df1460a6a975186df0f8d402f.tar.bz2 hercules-787d25edf045de8df1460a6a975186df0f8d402f.tar.xz hercules-787d25edf045de8df1460a6a975186df0f8d402f.zip |
Corrected some const-correctness errors in libconfig
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty/libconfig/libconfig.h')
-rw-r--r-- | 3rdparty/libconfig/libconfig.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/libconfig/libconfig.h b/3rdparty/libconfig/libconfig.h index 58c1f914e..69f2e6dbf 100644 --- a/3rdparty/libconfig/libconfig.h +++ b/3rdparty/libconfig/libconfig.h @@ -109,12 +109,12 @@ struct config_t int options; unsigned short tab_width; short default_format; - const char *include_dir; + char *include_dir; const char *error_text; const char *error_file; int error_line; enum config_error_t error_type; - const char **filenames; + char **filenames; unsigned int num_filenames; }; @@ -206,7 +206,7 @@ extern LIBCONFIG_API struct config_setting_t *config_setting_set_string_elem( struct config_setting_t *setting, int idx, const char *value); #define /* const char * */ config_get_include_dir(/* const struct config_t * */ C) \ - ((C)->include_dir) + ((const char *)(C)->include_dir) #define /* int */ config_setting_type(/* const struct config_setting_t * */ S) \ ((S)->type) |