summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-10-04 20:38:03 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-10-04 20:38:03 +0000
commit767fa2a51b48d3cd27f4f3e53212826d10d0a24b (patch)
tree8678f5994f32a715edd5fd7f5a4658689c613abd
parente7c9a4a6e48bfdda67295102643373e4812490fa (diff)
downloadATCD-767fa2a51b48d3cd27f4f3e53212826d10d0a24b.tar.gz
ChangeLogTag:Mon Oct 4 13:34:08 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r--ChangeLog12
-rw-r--r--ace/OS_NS_stdlib.cpp3
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d893e689d99..7747f9ef5c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Mon Oct 4 13:34:08 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/OS_NS_stdlib.cpp:
+
+ Added missing "ace/OS_NS_ctype.h" include.
+
+ (mkstemp_emulation):
+
+ ACE_OS::rand_r() accepts a reference to an ACE_TCHAR, not a
+ point to one. Removed "address-of" "&" from ACE_OS::rand_r()
+ argument.
+
Mon Oct 4 14:22:03 2004 Martin Corino <mcorino@remedy.nl>
* ace/OS_NS_stdlib.cpp:
diff --git a/ace/OS_NS_stdlib.cpp b/ace/OS_NS_stdlib.cpp
index 4ab01e98f68..6c9e5bca0d8 100644
--- a/ace/OS_NS_stdlib.cpp
+++ b/ace/OS_NS_stdlib.cpp
@@ -23,6 +23,7 @@ ACE_RCSID (ace,
#if defined (ACE_LACKS_MKSTEMP)
# include "ace/OS_NS_fcntl.h"
+# include "ace/OS_NS_ctype.h"
# include "ace/OS_NS_sys_time.h"
# include <limits>
@@ -642,7 +643,7 @@ ACE_OS::mkstemp_emulation (ACE_TCHAR * s)
do
{
r =
- static_cast<ACE_TCHAR> (coefficient * ACE_OS::rand_r (&seed));
+ static_cast<ACE_TCHAR> (coefficient * ACE_OS::rand_r (seed));
}
while (!ACE_OS::ace_isalnum (r));