mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 22:45:18 +00:00
[3932] Ignored remove return status
This commit is contained in:
@@ -115,8 +115,8 @@ public:
|
|||||||
resetConfiguration();
|
resetConfiguration();
|
||||||
|
|
||||||
// ... and delete the hooks library marker files if present
|
// ... and delete the hooks library marker files if present
|
||||||
remove(LOAD_MARKER_FILE);
|
static_cast<void>(remove(LOAD_MARKER_FILE));
|
||||||
remove(UNLOAD_MARKER_FILE);
|
static_cast<void>(remove(UNLOAD_MARKER_FILE));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Checks if config_result (result of DHCP server configuration) has
|
// Checks if config_result (result of DHCP server configuration) has
|
||||||
|
@@ -247,7 +247,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
void createUnixChannelServer() {
|
void createUnixChannelServer() {
|
||||||
::remove(socket_path_.c_str());
|
static_cast<void>(::remove(socket_path_.c_str()));
|
||||||
|
|
||||||
// Just a simple config. The important part here is the socket
|
// Just a simple config. The important part here is the socket
|
||||||
// location information.
|
// location information.
|
||||||
@@ -292,7 +292,7 @@ public:
|
|||||||
/// @brief Reset
|
/// @brief Reset
|
||||||
void reset() {
|
void reset() {
|
||||||
CtrlDhcpv6SrvTest::reset();
|
CtrlDhcpv6SrvTest::reset();
|
||||||
::remove(socket_path_.c_str());
|
static_cast<void>(::remove(socket_path_.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Conducts a command/response exchange via UnixCommandSocket
|
/// @brief Conducts a command/response exchange via UnixCommandSocket
|
||||||
|
@@ -834,7 +834,7 @@ Dhcpv6SrvTest::configure(const std::string& config, NakedDhcpv6Srv& srv) {
|
|||||||
NakedDhcpv6SrvTest::NakedDhcpv6SrvTest()
|
NakedDhcpv6SrvTest::NakedDhcpv6SrvTest()
|
||||||
: rcode_(-1) {
|
: rcode_(-1) {
|
||||||
// it's ok if that fails. There should not be such a file anyway
|
// it's ok if that fails. There should not be such a file anyway
|
||||||
remove(DUID_FILE);
|
static_cast<void>(remove(DUID_FILE));
|
||||||
|
|
||||||
const isc::dhcp::IfaceMgr::IfaceCollection& ifaces =
|
const isc::dhcp::IfaceMgr::IfaceCollection& ifaces =
|
||||||
isc::dhcp::IfaceMgr::instance().getIfaces();
|
isc::dhcp::IfaceMgr::instance().getIfaces();
|
||||||
@@ -856,7 +856,7 @@ NakedDhcpv6SrvTest::~NakedDhcpv6SrvTest() {
|
|||||||
isc::stats::StatsMgr::instance().removeAll();
|
isc::stats::StatsMgr::instance().removeAll();
|
||||||
|
|
||||||
// Let's clean up if there is such a file.
|
// Let's clean up if there is such a file.
|
||||||
remove(DUID_FILE);
|
static_cast<void>(remove(DUID_FILE));
|
||||||
isc::hooks::HooksManager::preCalloutsLibraryHandle()
|
isc::hooks::HooksManager::preCalloutsLibraryHandle()
|
||||||
.deregisterAllCallouts("buffer6_receive");
|
.deregisterAllCallouts("buffer6_receive");
|
||||||
isc::hooks::HooksManager::preCalloutsLibraryHandle()
|
isc::hooks::HooksManager::preCalloutsLibraryHandle()
|
||||||
|
Reference in New Issue
Block a user