diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-16 13:54:49 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2011-03-16 13:54:49 +0000 |
commit | 1c64cbeffd4f929fdfa7c74d77ae30a0f159db18 (patch) | |
tree | ca0ec13ad0295610c501302d7caad0b5850dd816 /ACE/ace/ICMP_Socket.cpp | |
parent | 9e293de8c60ab794dee58600c4e99cd61d4ff061 (diff) | |
download | ATCD-1c64cbeffd4f929fdfa7c74d77ae30a0f159db18.tar.gz |
Wed Mar 16 13:49:11 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/ICMP_Socket.cpp:
Use ACE_OS
Diffstat (limited to 'ACE/ace/ICMP_Socket.cpp')
-rw-r--r-- | ACE/ace/ICMP_Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/ICMP_Socket.cpp b/ACE/ace/ICMP_Socket.cpp index 8eee3b3ef04..eff3d456c8e 100644 --- a/ACE/ace/ICMP_Socket.cpp +++ b/ACE/ace/ICMP_Socket.cpp @@ -85,9 +85,9 @@ ACE_ICMP_Socket::open (ACE_Addr const & local, // Check if icmp protocol is supported on this host int proto_number = -1; - protoent *proto; + protoent *proto = 0; - if (! (proto = getprotobyname ("icmp"))) + if (! (proto = ACE_OS::getprotobyname ("icmp"))) { ACE_ERROR_RETURN ((LM_ERROR, |