diff options
author | Haru <haru@dotalux.com> | 2019-09-23 02:17:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 02:17:21 +0200 |
commit | 418b26dddca1d6ad9261adee56f96cf7c2c2de9b (patch) | |
tree | bd9c631b064f27f741e125a856e631dd6a13a9d6 /src/common | |
parent | 9a503ca86f8194135a86bad9070d64b21f56e2b6 (diff) | |
parent | 7ff0e074e74fd630f3bf90597605c82b4e10ec95 (diff) | |
download | hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.gz hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.bz2 hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.tar.xz hercules-418b26dddca1d6ad9261adee56f96cf7c2c2de9b.zip |
Merge pull request #2536 from MishimaHaruna/compile-fixes
Compile fixes
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPM.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c index a579a0926..479135767 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -458,11 +458,12 @@ static bool hplugins_addconf(unsigned int pluginID, enum HPluginConfType type, c static struct hplugin *hplugin_load(const char *filename) { + typedef void *(ImportSymbolFunc)(char *, unsigned int); struct hplugin *plugin; struct hplugin_info *info; struct HPMi_interface **HPMi; bool anyEvent = false; - void **import_symbol_ref; + ImportSymbolFunc **import_symbol_ref; int *HPMDataCheckVer; unsigned int *HPMDataCheckLen; struct s_HPMDataCheck *HPMDataCheck; @@ -499,7 +500,7 @@ static struct hplugin *hplugin_load(const char *filename) plugin->info = info; plugin->filename = aStrdup(filename); - if( !( import_symbol_ref = plugin_import(plugin->dll, "import_symbol",void **) ) ) { + if ((import_symbol_ref = plugin_import(plugin->dll, "import_symbol", ImportSymbolFunc **)) == NULL) { ShowFatalError("HPM:plugin_load: failed to retrieve 'import_symbol' for '"CL_WHITE"%s"CL_RESET"'!\n", filename); exit(EXIT_FAILURE); } |