summaryrefslogtreecommitdiff
path: root/ACE/ace/ICMP_Socket.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-23 11:10:45 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-03-23 11:10:45 +0100
commit373b467654b715f9b60b5659077832a65ab335e1 (patch)
tree988cf716454319d9d01624cbad11c80aa36c0863 /ACE/ace/ICMP_Socket.cpp
parentc22e1496f305f0fef210445f3e371b1c987ba318 (diff)
downloadATCD-373b467654b715f9b60b5659077832a65ab335e1.tar.gz
Use bool instead of int for error variable
* ACE/ace/ACE.cpp: * ACE/ace/Asynch_Acceptor.cpp: * ACE/ace/Asynch_Connector.cpp: * ACE/ace/Connector.cpp: * ACE/ace/ICMP_Socket.cpp: * ACE/ace/WFMO_Reactor.cpp:
Diffstat (limited to 'ACE/ace/ICMP_Socket.cpp')
-rw-r--r--ACE/ace/ICMP_Socket.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/ICMP_Socket.cpp b/ACE/ace/ICMP_Socket.cpp
index 7d077a7553e..074c23bb206 100644
--- a/ACE/ace/ICMP_Socket.cpp
+++ b/ACE/ace/ICMP_Socket.cpp
@@ -126,22 +126,22 @@ ACE_ICMP_Socket::shared_open (ACE_Addr const & local)
{
ACE_TRACE ("ACE_ICMP_Socket::shared_open");
- int error = 0;
+ bool error = false;
if (local == ACE_Addr::sap_any)
{
if (ACE::bind_port (this->get_handle ()) == -1)
{
- error = 1;
+ error = true;
}
}
else if (ACE_OS::bind (this->get_handle (),
reinterpret_cast<sockaddr *> (local.get_addr ()),
local.get_size ()) == -1)
{
- error = 1;
+ error = true;
}
- if (error != 0)
+ if (error)
{
this->close ();
}