summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2015-07-08 15:33:28 +0200
committerFrancis Dupont <fdupont@isc.org>2015-07-08 15:33:28 +0200
commit03f1f6175ccff469f96e351c0fc5df3a11a9c709 (patch)
treed4865af04d5ad5cac61655bfcc05b01fa735be71
parent[3932] Ignored remove return status (diff)
downloadkea-03f1f6175ccff469f96e351c0fc5df3a11a9c709.tar.xz
kea-03f1f6175ccff469f96e351c0fc5df3a11a9c709.zip
[3932] Ignored remove return status
-rw-r--r--src/lib/util/tests/socketsession_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/tests/socketsession_unittest.cc b/src/lib/util/tests/socketsession_unittest.cc
index 58a490b430..6f4a9d172a 100644
--- a/src/lib/util/tests/socketsession_unittest.cc
+++ b/src/lib/util/tests/socketsession_unittest.cc
@@ -176,7 +176,7 @@ protected:
{
std::string unix_file = getSocketPath();
- remove(unix_file.c_str());
+ static_cast<void>(remove(unix_file.c_str()));
test_un_.sun_family = AF_UNIX;
strncpy(test_un_.sun_path, unix_file.c_str(), sizeof(test_un_.sun_path));
#ifdef HAVE_SA_LEN
@@ -188,7 +188,7 @@ protected:
if (listen_fd_ != -1) {
close(listen_fd_);
}
- remove(getSocketPath().c_str());
+ static_cast<void>(remove(getSocketPath().c_str()));
}
// Start an internal "socket session server".