From: Francis Dupont Date: Mon, 14 Mar 2016 17:54:23 +0000 (+0100) Subject: [4326] Fixed Coverity CID 1232271 X-Git-Tag: trac4268a_base~3^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5ce3da3b8a6cc774f0688507a8976a1a2bd949c;p=thirdparty%2Fkea.git [4326] Fixed Coverity CID 1232271 --- diff --git a/src/lib/util/tests/socketsession_unittest.cc b/src/lib/util/tests/socketsession_unittest.cc index 9f019ebfd0..1f9f5aa9c9 100644 --- a/src/lib/util/tests/socketsession_unittest.cc +++ b/src/lib/util/tests/socketsession_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -474,7 +474,7 @@ ForwardTest::checkPushAndPop(int family, int type, int protocol, false)); setNonBlock(client_sock.fd, true); // This connect would "fail" due to EINPROGRESS. Ignore it for now. - connect(client_sock.fd, local.first, local.second); + static_cast(connect(client_sock.fd, local.first, local.second)); sockaddr_storage ss; socklen_t salen = sizeof(ss); server_sock.reset(accept(sock.fd, convertSockAddr(&ss), &salen));