summaryrefslogtreecommitdiff
path: root/tests/DLL_Test.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-02 18:48:15 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-02 18:48:15 +0000
commit3589ecc35b379846ee2efc056cbcdf92e6c81b7e (patch)
tree56a3f02d1d9ee365210f25c2a5d9e00b218fa841 /tests/DLL_Test.cpp
parentb7684b301f4532ed999220f54209370805ddae99 (diff)
downloadATCD-3589ecc35b379846ee2efc056cbcdf92e6c81b7e.tar.gz
ChangeLogTag:Fri Jul 2 11:49:12 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r--tests/DLL_Test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp
index a81a513a9ac..bce4250792d 100644
--- a/tests/DLL_Test.cpp
+++ b/tests/DLL_Test.cpp
@@ -53,7 +53,7 @@ USELIB("..\ace\aced.lib");
#endif /*ACE_WIN32*/
-char const *
+char const *
cdecl_decoration(char const * func_name)
{
#if defined(__BORLANDC__)
@@ -71,7 +71,7 @@ extern "C" ACE_Svc_Export Hello *get_hello (void);
Hello *get_hello (void)
{
- Hello *hello;
+ Hello *hello = 0;
ACE_NEW_RETURN (hello,
Hello,
@@ -103,14 +103,14 @@ main (int argc, char *argv[])
-1);
// Just becos the ANSI C++ spec says you can no longer cast a void* to a
- // function pointer. Doesnt allow:TC f = (TC) dll.symbol ("get_hello");
+ // function pointer. Doesnt allow:TC f = (TC) dll.symbol ("get_hello");
void * foo;
char const *cdecl_str = cdecl_decoration("get_hello");
foo = dll.symbol (cdecl_str);
-
+
// Cast the void* to long first.
- long tmp = ACE_reinterpret_cast (long, foo);
+ long tmp = ACE_reinterpret_cast (long, foo);
TC f = ACE_reinterpret_cast (Hello * (*)(void), tmp);
if (f == 0)
ACE_ERROR_RETURN ((LM_ERROR,