Commit d1bbd487 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

[2726] Remove useless variable

parent 49305bca
...@@ -410,10 +410,9 @@ void IOFetch::logIOFailure(asio::error_code ec) { ...@@ -410,10 +410,9 @@ void IOFetch::logIOFailure(asio::error_code ec) {
(data_->origin == ASIODNS_READ_DATA) || (data_->origin == ASIODNS_READ_DATA) ||
(data_->origin == ASIODNS_UNKNOWN_ORIGIN)); (data_->origin == ASIODNS_UNKNOWN_ORIGIN));
static const char* PROTOCOL[2] = {"TCP", "UDP"};
LOG_ERROR(logger, data_->origin).arg(ec.value()). LOG_ERROR(logger, data_->origin).arg(ec.value()).
arg((data_->remote_snd->getProtocol() == IPPROTO_TCP) ? arg((data_->remote_snd->getProtocol() == IPPROTO_TCP) ?
PROTOCOL[0] : PROTOCOL[1]). "TCP" : "UDP").
arg(data_->remote_snd->getAddress().toText()). arg(data_->remote_snd->getAddress().toText()).
arg(data_->remote_snd->getPort()); arg(data_->remote_snd->getPort());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment