]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.cpp
Merge branch 'stg-2.409-radius'
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.cpp
index 35551c5db1ecf24bd509fe06ad3c4cd1a78e4a1c..a9836911b45ffec8e5b15ee377bde607f5f0ca9e 100644 (file)
  *
  */
 
-#include <string>
-#include <vector>
+#include "postgresql_store.h"
 
-#include <libpq-fe.h>
+#include "postgresql_store_utils.h"
+#include "postgresql_store.h"
 
 #include "stg/module_settings.h"
 #include "stg/plugin_creator.h"
-#include "postgresql_store_utils.h"
-#include "postgresql_store.h"
+
+#include <string>
+#include <vector>
+
+#include <libpq-fe.h>
 
 namespace
 {
@@ -89,13 +92,12 @@ pthread_mutex_destroy(&mutex);
 int POSTGRESQL_STORE::ParseSettings()
 {
 std::vector<PARAM_VALUE>::iterator i;
-std::string s;
 
 for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i)
     {
     if (i->value.empty())
         continue;
-    s = ToLower(i->param);
+    std::string s = ToLower(i->param);
     if (s == "server")
         {
         server = i->value.front();