summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r--plugins/Db3x_mmap/commonheaders.h2
-rw-r--r--plugins/Db3x_mmap/init.cpp11
2 files changed, 3 insertions, 10 deletions
diff --git a/plugins/Db3x_mmap/commonheaders.h b/plugins/Db3x_mmap/commonheaders.h
index d5ec770353..6e1d4bcc28 100644
--- a/plugins/Db3x_mmap/commonheaders.h
+++ b/plugins/Db3x_mmap/commonheaders.h
@@ -53,8 +53,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "resource.h"
#include "version.h"
-extern PLUGINLINK *pluginLink;
-
extern CRITICAL_SECTION csDbAccess;
extern struct DBHeader dbHeader;
extern HANDLE hDbFile;
diff --git a/plugins/Db3x_mmap/init.cpp b/plugins/Db3x_mmap/init.cpp
index 7f01840a0e..50beb170e3 100644
--- a/plugins/Db3x_mmap/init.cpp
+++ b/plugins/Db3x_mmap/init.cpp
@@ -42,7 +42,7 @@ static PLUGININFOEX pluginInfo = {
};
HINSTANCE g_hInst=NULL;
-PLUGINLINK *pluginLink;
+
static int getCapability( int flag )
{
@@ -115,16 +115,11 @@ static int grokHeader( char * profile, int * error )
}
// returns 0 if all the APIs are injected otherwise, 1
-static int LoadDatabase( char * profile, void * plink )
+static int LoadDatabase(char * profile)
{
- PLUGINLINK *link = (PLUGINLINK *)plink;
-
// don't need thread notifications
strncpy(szDbPath, profile, sizeof(szDbPath));
- // this is like Load()'s pluginLink
- pluginLink=link;
-
// set the memory, lists & UTF8 manager
mir_getLP( &pluginInfo );
@@ -177,7 +172,7 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
return interfaces;
}
-extern "C" __declspec(dllexport) int Load(PLUGINLINK * link)
+extern "C" __declspec(dllexport) int Load(void)
{
return 1;
}