diff --git a/pandora_agents/win32/bin/PandoraAgent.exe b/pandora_agents/win32/bin/PandoraAgent.exe index eb7179834e..2cb9126ea3 100755 Binary files a/pandora_agents/win32/bin/PandoraAgent.exe and b/pandora_agents/win32/bin/PandoraAgent.exe differ diff --git a/pandora_agents/win32/main.cc b/pandora_agents/win32/main.cc index 39fb89c52b..06984ba9e1 100644 --- a/pandora_agents/win32/main.cc +++ b/pandora_agents/win32/main.cc @@ -44,7 +44,7 @@ main (int argc, char *argv[]) { Pandora_Windows_Service *service; char buffer[PATH_SIZE]; string aux; - unsigned int pos; + int pos; bool process = false; string home; string binary_path; diff --git a/pandora_agents/win32/modules/pandora_module_factory.cc b/pandora_agents/win32/modules/pandora_module_factory.cc index 1c8f604579..338b7505d5 100644 --- a/pandora_agents/win32/modules/pandora_module_factory.cc +++ b/pandora_agents/win32/modules/pandora_module_factory.cc @@ -121,7 +121,7 @@ using namespace Pandora_Strutils; string parseLine (string line, string token) { - unsigned int pos; + int pos; string retstr = ""; pos = line.find (token); @@ -506,7 +506,7 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) { } /* Subst macros */ - unsigned int pos, pos_macro; + int pos, pos_macro; string macro_name, macro_value; if (macro_list.size () > 0) { diff --git a/pandora_agents/win32/modules/pandora_module_list.cc b/pandora_agents/win32/modules/pandora_module_list.cc index 797bfbcf82..516b2296c8 100644 --- a/pandora_agents/win32/modules/pandora_module_list.cc +++ b/pandora_agents/win32/modules/pandora_module_list.cc @@ -48,7 +48,7 @@ void Pandora_Modules::Pandora_Module_List::parseModuleConf (string path_file, list *modules) { ifstream file_conf (path_file.c_str ()); string buffer; - unsigned int pos; + int pos; if (!file_conf.is_open ()) { return; @@ -104,7 +104,7 @@ Pandora_Modules::Pandora_Module_List::parseModuleConf (string path_file, listmodules = new list (); @@ -123,7 +123,7 @@ Pandora_Modules::Pandora_Module_List::Pandora_Module_List (string filename) { pos = buffer.find("include"); if (pos != string::npos){ string path_file; - unsigned pos_c; + int pos_c; path_file = buffer.substr(pos+8); diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index e48433a8db..fa85ac4c5e 100644 --- a/pandora_agents/win32/pandora.cc +++ b/pandora_agents/win32/pandora.cc @@ -46,7 +46,7 @@ string pandora_version = PANDORA_VERSION; */ void Key_Value::parseLine (string str) { - unsigned int pos; + int pos; list tokens; list::iterator iter; string trimmedstr; diff --git a/pandora_agents/win32/pandora_agent_conf.cc b/pandora_agents/win32/pandora_agent_conf.cc index d0a76da4e0..e7b19fb4ba 100644 --- a/pandora_agents/win32/pandora_agent_conf.cc +++ b/pandora_agents/win32/pandora_agent_conf.cc @@ -60,7 +60,7 @@ void Pandora::Pandora_Agent_Conf::parseFile(string path_file, Collection *aux){ ifstream file_conf (path_file.c_str ()); string buffer; - unsigned int pos; + int pos; if (!file_conf.is_open ()) { return; @@ -112,7 +112,7 @@ writeBrokerConf(string path_broker, string filename, string name_broker){ ofstream file_broker ((Pandora::getPandoraInstallDir ()+path_broker).c_str ()); string buffer; string comp; - unsigned int pos; + int pos; int i; int ok; @@ -153,7 +153,7 @@ writeBrokerConf(string path_broker, string filename, string name_broker){ void Pandora::Pandora_Agent_Conf::setFile (string *all_conf){ string buffer, filename; - unsigned int pos; + int pos; Collection *aux; filename = Pandora::getPandoraInstallDir (); @@ -184,7 +184,7 @@ Pandora::Pandora_Agent_Conf::setFile (string *all_conf){ pos = buffer.find("include"); if (pos != string::npos){ string path_file; - unsigned pos_c; + int pos_c; path_file = buffer.substr(pos+8); @@ -200,7 +200,7 @@ Pandora::Pandora_Agent_Conf::setFile (string *all_conf){ pos = buffer.find("broker_agent"); if (pos != string::npos){ string path_broker, name_broker; - unsigned pos_c; + int pos_c; int position = 0; name_broker = buffer.substr(pos+13); @@ -266,7 +266,7 @@ void Pandora::Pandora_Agent_Conf::setFile (string filename) { ifstream file (filename.c_str ()); string buffer; - unsigned int pos; + int pos; Collection *aux; if (this->key_values) @@ -292,7 +292,7 @@ Pandora::Pandora_Agent_Conf::setFile (string filename) { pos = buffer.find("include"); if (pos != string::npos){ string path_file; - unsigned pos_c; + int pos_c; path_file = buffer.substr(pos+8); diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index e0a4d0a8c9..13498db9d3 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -145,7 +145,7 @@ int Pandora_Windows_Service::count_broker_agents(){ string buffer; string filename; - unsigned int pos; + int pos; int num = 0; filename = Pandora::getPandoraInstallDir (); @@ -173,7 +173,7 @@ Pandora_Windows_Service::count_broker_agents(){ void Pandora_Windows_Service::check_broker_agents(string *all_conf){ string buffer, filename; - unsigned int pos; + int pos; int pos_file = 0; filename = Pandora::getPandoraInstallDir (); @@ -374,7 +374,7 @@ Pandora_Windows_Service::getXmlHeader () { string custom_id, url_address, latitude, longitude, altitude, position_description, gis_exec, gis_result; time_t ctime; struct tm *ctime_tm = NULL; - unsigned int pos; + int pos; // Get agent name agent_name = conf->getValue ("agent_name"); @@ -1341,7 +1341,7 @@ string Pandora_Windows_Service::checkAgentName(string filename){ string name_agent = ""; string buffer; - unsigned int pos; + int pos; ifstream file (filename.c_str ()); while (!file.eof ()) {