summaryrefslogtreecommitdiff
path: root/ace/ATM_Stream.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2002-06-09 22:09:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2002-06-09 22:09:18 +0000
commit5f02810aaeb03c643a7d3a2c487db3a0dbabc518 (patch)
tree8f4e8f0513fa51010c44466d5a313c3eab60fdfd /ace/ATM_Stream.cpp
parentd931a6e652cbc4ada7a293e17bb2feb0f6212340 (diff)
downloadATCD-5f02810aaeb03c643a7d3a2c487db3a0dbabc518.tar.gz
ChangeLogTag:Sun Jun 9 16:26:00 2002 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'ace/ATM_Stream.cpp')
-rw-r--r--ace/ATM_Stream.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/ATM_Stream.cpp b/ace/ATM_Stream.cpp
index 71310e29458..35be039b86e 100644
--- a/ace/ATM_Stream.cpp
+++ b/ace/ATM_Stream.cpp
@@ -162,7 +162,7 @@ ACE_ATM_Stream::get_vpi_vci (ACE_UINT16 &vpi,
}
char *buf_req = (char *) ACE_OS::malloc (info.options);
- if (buf_req == (char *) NULL)
+ if (buf_req == 0)
{
ACE_OS::fprintf (stderr,
"Unable to allocate %ld bytes for options\n",
@@ -171,7 +171,7 @@ ACE_ATM_Stream::get_vpi_vci (ACE_UINT16 &vpi,
}
char *buf_ret = (char *) ACE_OS::malloc (info.options);
- if (buf_ret == (char *) NULL)
+ if (buf_ret == 0)
{
ACE_OS::fprintf (stderr,
"Unable to allocate %ld bytes for options\n",
@@ -226,13 +226,13 @@ ACE_ATM_Stream::get_vpi_vci (ACE_UINT16 &vpi,
if (::WSAIoctl ((int) this -> get_handle (),
SIO_GET_ATM_CONNECTION_ID,
- NULL,
+ 0,
0,
(LPVOID) &connID,
sizeof (ATM_CONNECTION_ID),
&bytes,
- NULL,
- NULL)
+ 0,
+ 0)
== SOCKET_ERROR) {
ACE_OS::printf ("Error: WSAIoctl %d\n", WSAGetLastError ());
}