From db3f625e8005e21af4bf0e62ad989bf546f61f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 5 Jun 2018 09:30:24 +0200 Subject: [PATCH] Fix compilation for Windows hosts --- src/ConfigFile.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ConfigFile.cc b/src/ConfigFile.cc index 67262f8b..a9b37378 100644 --- a/src/ConfigFile.cc +++ b/src/ConfigFile.cc @@ -600,16 +600,16 @@ ConfigFile::checkPass(WarningConsolidation &warnings) const } } #if defined(_WIN32) || defined(__CYGWIN32__) - if (it->second->operatingSystem.empty()) + if (slave_node.second->operatingSystem.empty()) { - if (it->second->password.empty()) + if (slave_node.second->password.empty()) { - cerr << "ERROR (node " << it->first << "): the Password option must be passed under Windows for every remote node." << endl; + cerr << "ERROR (node " << slave_node.first << "): the Password option must be passed under Windows for every remote node." << endl; exit(EXIT_FAILURE); } - if (it->second->remoteDrive.empty()) + if (slave_node.second->remoteDrive.empty()) { - cerr << "ERROR (node " << it->first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl; + cerr << "ERROR (node " << slave_node.first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl; exit(EXIT_FAILURE); } }