blob: 00496ebe1139538cbc358ecccfba8c061cdb193f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- SpiralSound/PluginManager.C.orig 2003-08-08 13:07:30 UTC
+++ SpiralSound/PluginManager.C
@@ -49,7 +49,7 @@ PluginID PluginManager::LoadPlugin(const
}
// Link the neccesary functions
- char *error;
+ const char *error;
NewPlugin->CreateInstance = (SpiralPlugin*(*)()) dlsym(NewPlugin->Handle, "SpiralPlugin_CreateInstance");
@@ -98,7 +98,7 @@ void PluginManager::UnLoadPlugin(PluginI
if (IsValid(ID))
{
dlclose(GetPlugin(ID)->Handle);
- char *error;
+ const char *error;
if ((error = dlerror()) != NULL)
{
SpiralInfo::Alert("Error unlinking plugin: \n"+string(error));
@@ -112,7 +112,7 @@ void PluginManager::UnloadAll()
i!=m_PluginVec.end(); i++)
{
dlclose((*i)->Handle);
- char *error;
+ const char *error;
if ((error = dlerror()) != NULL)
{
SpiralInfo::Alert("Error unlinking plugin: \n"+string(error));
|