Browse Source

[4326] Fixed Coverity CID 1232272

Francis Dupont 9 years ago
parent
commit
cad74fe449
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dhcp/tests/iface_mgr_unittest.cc

+ 2 - 2
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<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.