diff --git a/src/neutrino.cpp b/src/neutrino.cpp index b91fe1325..ab7e00dd9 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -484,12 +484,12 @@ int CNeutrinoApp::loadSetup(const char * fname) g_settings.ci_standby_reset = configfile.getInt32("ci_standby_reset", 0); #if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_clock_%d", i); g_settings.ci_clock[i] = configfile.getInt32(cfg_key, 6); } #else - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_clock_%d", i); g_settings.ci_clock[i] = configfile.getInt32(cfg_key, 9); } @@ -497,12 +497,12 @@ int CNeutrinoApp::loadSetup(const char * fname) #if BOXMODEL_VUPLUS g_settings.ci_delay = configfile.getInt32("ci_delay", 256); - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_rpr_%d", i); g_settings.ci_rpr[i] = configfile.getInt32(cfg_key, 9); } #endif - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_ignore_messages_%d", i); g_settings.ci_ignore_messages[i] = configfile.getInt32(cfg_key, 0); sprintf(cfg_key, "ci_save_pincode_%d", i); @@ -1495,19 +1495,19 @@ void CNeutrinoApp::saveSetup(const char * fname) configfile.setInt32( "standby_cpufreq", g_settings.standby_cpufreq); configfile.setInt32("ci_standby_reset", g_settings.ci_standby_reset); - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_clock_%d", i); configfile.setInt32(cfg_key, g_settings.ci_clock[i]); } #if BOXMODEL_VUPLUS configfile.setInt32("ci_delay", g_settings.ci_delay); - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_rpr_%d", i); configfile.setInt32(cfg_key, g_settings.ci_rpr[i]); } #endif - for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { + for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) { sprintf(cfg_key, "ci_ignore_messages_%d", i); configfile.setInt32(cfg_key, g_settings.ci_ignore_messages[i]); sprintf(cfg_key, "ci_save_pincode_%d", i);