From 7c52605cabb4f5447055344733d69555c1948956 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 11 Aug 2015 01:57:27 +0200 Subject: Moved sql_handle into the HPMi interface Signed-off-by: Haru --- src/common/HPM.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/common/HPM.c') diff --git a/src/common/HPM.c b/src/common/HPM.c index b4594d1ca..8963630b1 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -102,7 +102,6 @@ struct hplugin *hplugin_load(const char* filename) { struct HPMi_interface **HPMi; bool anyEvent = false; void **import_symbol_ref; - Sql **sql_handle; int *HPMDataCheckVer; unsigned int *HPMDataCheckLen; struct s_HPMDataCheck *HPMDataCheck; @@ -146,13 +145,6 @@ struct hplugin *hplugin_load(const char* filename) { *import_symbol_ref = HPM->import_symbol; - if( !( sql_handle = plugin_import(plugin->dll, "mysql_handle",Sql **) ) ) { - ShowFatalError("HPM:plugin_load: failed to retrieve 'mysql_handle' for '"CL_WHITE"%s"CL_RESET"'!\n", filename); - exit(EXIT_FAILURE); - } - - *sql_handle = HPM->import_symbol("sql_handle",plugin->idx); - if( !( HPMi = plugin_import(plugin->dll, "HPMi",struct HPMi_interface **) ) ) { ShowFatalError("HPM:plugin_load: failed to retrieve 'HPMi' for '"CL_WHITE"%s"CL_RESET"'!\n", filename); exit(EXIT_FAILURE); -- cgit v1.2.3-70-g09d2