diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-07-17 10:22:26 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-07-17 10:22:26 +0000 |
commit | 037e57c9f6b349c60a7ef9e16be1cdb9cd15f36d (patch) | |
tree | 33b6af56d635d291681ff295e280c4b7b37436f4 | |
parent | bdeb1a8b6ffb9692348a441b92d2e02bde2c4ed6 (diff) | |
download | ATCD-037e57c9f6b349c60a7ef9e16be1cdb9cd15f36d.tar.gz |
Tue Jul 17 10:20:24 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | ACE/ChangeLog | 6 | ||||
-rw-r--r-- | ACE/examples/Reactor/Proactor/test_proactor2.cpp | 12 | ||||
-rw-r--r-- | ACE/examples/Reactor/Proactor/test_proactor3.cpp | 12 |
3 files changed, 28 insertions, 2 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 35a538368b1..1fb0efddfb2 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 17 10:20:24 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> + + * examples/Reactor/Proactor/test_proactor2.cpp: + * examples/Reactor/Proactor/test_proactor3.cpp: + Fixed some compile warnings/errors + Tue Jul 17 08:36:24 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * ace/POSIX_Proactor.h: diff --git a/ACE/examples/Reactor/Proactor/test_proactor2.cpp b/ACE/examples/Reactor/Proactor/test_proactor2.cpp index 8e2e57476bf..084cb0eb840 100644 --- a/ACE/examples/Reactor/Proactor/test_proactor2.cpp +++ b/ACE/examples/Reactor/Proactor/test_proactor2.cpp @@ -409,7 +409,7 @@ MyMutex m_Mtx ; long nIOCount ; }; -static char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; +static const char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; Sender::Sender (void) :nIOCount ( 0 ) @@ -805,4 +805,14 @@ int PrintSigMask () return 0; } +#else /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ + +int +ACE_TMAIN (int, ACE_TCHAR *[]) +{ + ACE_DEBUG ((LM_DEBUG, + "This example does not work on this platform.\n")); + return 1; +} + #endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ diff --git a/ACE/examples/Reactor/Proactor/test_proactor3.cpp b/ACE/examples/Reactor/Proactor/test_proactor3.cpp index f0b201c721d..7310fdc6a6f 100644 --- a/ACE/examples/Reactor/Proactor/test_proactor3.cpp +++ b/ACE/examples/Reactor/Proactor/test_proactor3.cpp @@ -454,7 +454,7 @@ private: long io_count_; }; -static char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; +static const char *data = "Welcome to Irfan World! Irfan RULES here !!\n"; Sender::Sender (void) : io_count_ (0) @@ -871,4 +871,14 @@ print_sigmask (void) } #endif /* 0 */ +#else /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ + +int +ACE_TMAIN (int, ACE_TCHAR *[]) +{ + ACE_DEBUG ((LM_DEBUG, + "This example does not work on this platform.\n")); + return 1; +} + #endif /* ACE_HAS_WIN32_OVERLAPPED_IO || ACE_HAS_AIO_CALLS */ |