]> git.stg.codes - stg.git/blobdiff - projects/stargazer/store_loader.cpp
Ticket 37. The td->tariffConf.changePolicyTimeout added in the
[stg.git] / projects / stargazer / store_loader.cpp
index 0dceb81da785eeb8999388810094c80994a9d953..d27c09023603f8745a02df66554d84cff694c862 100644 (file)
@@ -54,7 +54,7 @@ bool STORE_LOADER::Load()
 {
 if (isLoaded)
     {
-    errorStr = "Store plugin '" + pluginFileName + "' was alredy loaded!";
+    errorStr = "Store plugin '" + pluginFileName + "' was already loaded!";
     printfd(__FILE__, "STORE_LOADER::Load() - %s\n", errorStr.c_str());
     return false;
     }
@@ -79,7 +79,7 @@ if (!handle)
 isLoaded = true;
 
 STORE * (*GetStore)();
-GetStore = (STORE * (*)())dlsym(handle, "GetStore");
+GetStore = reinterpret_cast<STORE * (*)()>(dlsym(handle, "GetStore"));
 if (!GetStore)
     {
     errorStr = std::string("GetStore() not found! ") + dlerror();