From: Francis Dupont Date: Mon, 14 Mar 2016 17:58:19 +0000 (+0100) Subject: [4326] Fixed Coverity CID 1232272 X-Git-Tag: trac4268a_base~3^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cad74fe44930440bf0b0aa704133dbfa90cbad30;p=thirdparty%2Fkea.git [4326] Fixed Coverity CID 1232272 --- diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc index 0d244b7c7f..efd21df6a5 100644 --- a/src/lib/dhcp/tests/iface_mgr_unittest.cc +++ b/src/lib/dhcp/tests/iface_mgr_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 @@ -883,7 +883,7 @@ TEST_F(IfaceMgrTest, multipleSockets) { init_sockets_it != init_sockets.end(); ++init_sockets_it) { // recv() must result in error when using invalid socket. char buf; - recv(*init_sockets_it, &buf, 1, MSG_PEEK); + static_cast(recv(*init_sockets_it, &buf, 1, MSG_PEEK)); // EWOULDBLOCK would mean that socket is valid/open but // simply no data is received so we have to check for // other errors.