changeset 852:b92e9e438ec1

irccdctl: fix build on UNIX
author David Demelier <markand@malikania.fr>
date Wed, 17 Jul 2019 14:07:58 +0000
parents 7c5898a79671
children f3d48aed8cf2
files irccdctl/main.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/irccdctl/main.cpp	Tue Jul 16 20:52:24 2019 +0200
+++ b/irccdctl/main.cpp	Wed Jul 17 14:07:58 2019 +0000
@@ -344,16 +344,16 @@
  *
  * -P file
  */
-auto parse_connect_local([[maybe_unused]] const options::pack& options) -> std::unique_ptr<connector>
+auto parse_connect_local([[maybe_unused]] const options::pack& pack) -> std::unique_ptr<connector>
 {
 #if !BOOST_OS_WINDOWS
-	const auto& [ _, options ] = result;
+	const auto& [ _, options ] = pack;
 	const auto path = options.find('P');
 
 	if (path == options.end() || path->second.empty())
 		throw transport_error(transport_error::invalid_path);
 
-	return std::make_unique<local_connector>(service, it->second);
+	return std::make_unique<local_connector>(service, path->second);
 #else
 	throw transport_error(transport_error::not_supported);
 #endif
@@ -389,7 +389,7 @@
 		auto end = args.end();
 
 		result = options::parse(begin, end, "c:h:p:P:v!");
-	
+
 		for (const auto& [ opt, _ ] : std::get<1>(result))
 			if (opt == 'v')
 				verbose = true;