From: Michal 'vorner' Vaner Date: Wed, 12 Jun 2013 09:37:42 +0000 (+0200) Subject: [2726] Remove useless variable X-Git-Tag: bind10-1.2.0beta1-release~400^2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1bbd4878ba48cd9ebc623b1e8666f425c86e84b;p=thirdparty%2Fkea.git [2726] Remove useless variable --- diff --git a/src/lib/asiodns/io_fetch.cc b/src/lib/asiodns/io_fetch.cc index eed5fdf900..a09d8df042 100644 --- a/src/lib/asiodns/io_fetch.cc +++ b/src/lib/asiodns/io_fetch.cc @@ -410,10 +410,9 @@ void IOFetch::logIOFailure(asio::error_code ec) { (data_->origin == ASIODNS_READ_DATA) || (data_->origin == ASIODNS_UNKNOWN_ORIGIN)); - static const char* PROTOCOL[2] = {"TCP", "UDP"}; LOG_ERROR(logger, data_->origin).arg(ec.value()). arg((data_->remote_snd->getProtocol() == IPPROTO_TCP) ? - PROTOCOL[0] : PROTOCOL[1]). + "TCP" : "UDP"). arg(data_->remote_snd->getAddress().toText()). arg(data_->remote_snd->getPort()); }