]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4326] Fixed Coverity CID 1232272
authorFrancis Dupont <fdupont@isc.org>
Mon, 14 Mar 2016 17:58:19 +0000 (18:58 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 14 Mar 2016 17:58:19 +0000 (18:58 +0100)
src/lib/dhcp/tests/iface_mgr_unittest.cc

index 0d244b7c7f12069b4b4e665fd5631afc67fed725..efd21df6a5a491d0d2bb0648e1a83420bf3499c6 100644 (file)
@@ -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<void>(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.