summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-11-25 19:26:29 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-11-25 19:26:29 +0000
commite32e19b2d6e31532ab0304e23337629cb74fa674 (patch)
tree24ee605c66a823a8399f246369441cf33f32a0d7
parent97da4d7d8a48d878530f3ef832851fd490e35444 (diff)
downloadATCD-e32e19b2d6e31532ab0304e23337629cb74fa674.tar.gz
ChangeLogTag:Thu Nov 25 13:24:37 1999 Darrell Brunsch <brunsch@cs.wustl.edu>
-rw-r--r--tests/Capabilities_Test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Capabilities_Test.cpp b/tests/Capabilities_Test.cpp
index de7ae3bf3a4..6ea3f0fe04b 100644
--- a/tests/Capabilities_Test.cpp
+++ b/tests/Capabilities_Test.cpp
@@ -81,9 +81,9 @@ main (int, char *[])
" integer#2,\n"
" string=000030,\n\n";
- int fd = ACE_OS::open (config, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ ACE_HANDLE fd = ACE_OS::open (config, O_RDWR | O_CREAT | O_TRUNC, 0600);
- if (fd == -1)
+ if (fd == ACE_INVALID_HANDLE)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_OS::open"), -1);
@@ -95,7 +95,7 @@ main (int, char *[])
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_OS::write"), -1);
}
- if (close (fd) != 0)
+ if (ACE_OS::close (fd) != 0)
{
ACE_OS::unlink (config);
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "ACE_OS::close"), -1);