summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/ASX/UPIPE_Event_Server/event_server.cpp2
-rw-r--r--examples/Connection/misc/test_upipe.cpp2
-rw-r--r--examples/Connection/non_blocking/test_spipe_acceptor.cpp2
-rw-r--r--examples/Connection/non_blocking/test_spipe_connector.cpp2
-rw-r--r--examples/Connection/non_blocking/test_tli_acceptor.cpp2
-rw-r--r--examples/Connection/non_blocking/test_tli_connector.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp4
-rw-r--r--examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp2
-rw-r--r--examples/Misc/test_dump.cpp2
-rw-r--r--examples/Reactor/FIFO/client.cpp2
-rw-r--r--examples/Reactor/Misc/test_event_handler_t.cpp4
-rw-r--r--examples/Reactor/Misc/test_reactors.cpp2
-rw-r--r--examples/Reactor/Misc/test_signals_2.cpp2
-rw-r--r--examples/Reactor/Proactor/test_multiple_loops.cpp2
-rw-r--r--examples/Reactor/Proactor/test_timeout.cpp2
-rw-r--r--examples/Reactor/ReactorEx/test_exceptions.cpp2
-rw-r--r--examples/Reactor/ReactorEx/test_timeout.cpp2
-rw-r--r--examples/Reactor/WFMO_Reactor/test_exceptions.cpp2
-rw-r--r--examples/Reactor/WFMO_Reactor/test_timeout.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp2
-rw-r--r--examples/Shared_Malloc/test_multiple_mallocs.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp2
-rw-r--r--examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp4
-rw-r--r--examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp4
-rw-r--r--examples/Threads/process_mutex.cpp2
-rw-r--r--examples/Threads/recursive_mutex.cpp2
-rw-r--r--examples/Threads/thread_specific.cpp2
-rw-r--r--examples/Threads/token.cpp2
-rw-r--r--examples/Threads/tss1.cpp2
-rw-r--r--examples/Threads/wfmo.cpp2
-rw-r--r--tests/Hash_Map_Manager_Test.cpp2
-rw-r--r--tests/Simple_Message_Block_Test.cpp2
36 files changed, 40 insertions, 40 deletions
diff --git a/examples/ASX/UPIPE_Event_Server/event_server.cpp b/examples/ASX/UPIPE_Event_Server/event_server.cpp
index 9a1f432278c..44840adcdfa 100644
--- a/examples/ASX/UPIPE_Event_Server/event_server.cpp
+++ b/examples/ASX/UPIPE_Event_Server/event_server.cpp
@@ -247,7 +247,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "test not defined for this platform\n"), -1);
}
diff --git a/examples/Connection/misc/test_upipe.cpp b/examples/Connection/misc/test_upipe.cpp
index 73fb2a06103..2290390d654 100644
--- a/examples/Connection/misc/test_upipe.cpp
+++ b/examples/Connection/misc/test_upipe.cpp
@@ -204,7 +204,7 @@ template class ACE_Thread_Strategy<Server_Service>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support threads\n"), 1);
}
diff --git a/examples/Connection/non_blocking/test_spipe_acceptor.cpp b/examples/Connection/non_blocking/test_spipe_acceptor.cpp
index c6d98bbd912..4378969516d 100644
--- a/examples/Connection/non_blocking/test_spipe_acceptor.cpp
+++ b/examples/Connection/non_blocking/test_spipe_acceptor.cpp
@@ -40,7 +40,7 @@ template class Svc_Handler<ACE_SPIPE_STREAM>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "This test is not ported to Win32 (yet)\n"), -1);
}
diff --git a/examples/Connection/non_blocking/test_spipe_connector.cpp b/examples/Connection/non_blocking/test_spipe_connector.cpp
index d8b367b1347..667bf927404 100644
--- a/examples/Connection/non_blocking/test_spipe_connector.cpp
+++ b/examples/Connection/non_blocking/test_spipe_connector.cpp
@@ -46,7 +46,7 @@ template class Peer_Handler<ACE_SPIPE_STREAM>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "This test is not ported to Win32 (yet)\n"), -1);
}
diff --git a/examples/Connection/non_blocking/test_tli_acceptor.cpp b/examples/Connection/non_blocking/test_tli_acceptor.cpp
index 3b1008f4f3c..7eeb9abb0c9 100644
--- a/examples/Connection/non_blocking/test_tli_acceptor.cpp
+++ b/examples/Connection/non_blocking/test_tli_acceptor.cpp
@@ -41,7 +41,7 @@ template class Svc_Handler<ACE_TLI_STREAM>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support TLI\n"), 1);
}
diff --git a/examples/Connection/non_blocking/test_tli_connector.cpp b/examples/Connection/non_blocking/test_tli_connector.cpp
index 31846345746..009098a0482 100644
--- a/examples/Connection/non_blocking/test_tli_connector.cpp
+++ b/examples/Connection/non_blocking/test_tli_connector.cpp
@@ -48,7 +48,7 @@ template class Peer_Handler<ACE_TLI_STREAM>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support TLI\n"), 1);
}
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
index 64a73ba2c1c..f09de4ad760 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
@@ -14,7 +14,7 @@
const int MAX_FDS = 200;
int
-main (void)
+main (int, char *[])
{
// Create a server end-point.
ACE_INET_Addr addr (ACE_DEFAULT_SERVER_PORT);
@@ -93,7 +93,7 @@ main (void)
}
#else
#include <stdio.h>
-int main (void)
+int main (int, char *[])
{
ACE_OS::fprintf (stderr, "This feature is not supported\n");
return 0;
diff --git a/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp b/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
index a9acc99d71b..afcb55f33ad 100644
--- a/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
@@ -85,7 +85,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform doesn't not support UNIX domain sockets\n"), -1);
}
diff --git a/examples/Misc/test_dump.cpp b/examples/Misc/test_dump.cpp
index 4428f65c4cd..c9a59dd9ce6 100644
--- a/examples/Misc/test_dump.cpp
+++ b/examples/Misc/test_dump.cpp
@@ -46,7 +46,7 @@ public:
};
int
-main (void)
+main (int, char *[])
{
SOCK outer_sock;
// Note that the SOCK superclass is *not* printed.
diff --git a/examples/Reactor/FIFO/client.cpp b/examples/Reactor/FIFO/client.cpp
index 5bee3c8548f..5956b5b13b8 100644
--- a/examples/Reactor/FIFO/client.cpp
+++ b/examples/Reactor/FIFO/client.cpp
@@ -1,7 +1,7 @@
#include "ace/FIFO_Send_Msg.h"
int
-main (void)
+main (int, char *[])
{
char buf[] = "hello world";
ACE_Str_Buf msg (buf, sizeof buf);
diff --git a/examples/Reactor/Misc/test_event_handler_t.cpp b/examples/Reactor/Misc/test_event_handler_t.cpp
index beedb8e7e2d..3731a1c6a0e 100644
--- a/examples/Reactor/Misc/test_event_handler_t.cpp
+++ b/examples/Reactor/Misc/test_event_handler_t.cpp
@@ -24,7 +24,7 @@ public:
};
int
-main (void)
+main (int, char *[])
{
typedef ACE_Event_Handler_T<ACE_Sig_Handler> EH_SH;
@@ -38,7 +38,7 @@ main (void)
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support template typedefs\n"), 1);
}
diff --git a/examples/Reactor/Misc/test_reactors.cpp b/examples/Reactor/Misc/test_reactors.cpp
index 31c6c4af31e..43201feca9b 100644
--- a/examples/Reactor/Misc/test_reactors.cpp
+++ b/examples/Reactor/Misc/test_reactors.cpp
@@ -155,7 +155,7 @@ worker (void *args)
}
int
-main (void)
+main (int, char *[])
{
ACE_Reactor *react1 = ACE_Reactor::instance ();
ACE_Reactor *react2 = new ACE_Reactor ();
diff --git a/examples/Reactor/Misc/test_signals_2.cpp b/examples/Reactor/Misc/test_signals_2.cpp
index 2fba1d942f3..4e9b0dd4d1f 100644
--- a/examples/Reactor/Misc/test_signals_2.cpp
+++ b/examples/Reactor/Misc/test_signals_2.cpp
@@ -221,7 +221,7 @@ main (int argc, char *)
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "The HP C++ compiler is too lame to support this feature\n"), -1);
}
diff --git a/examples/Reactor/Proactor/test_multiple_loops.cpp b/examples/Reactor/Proactor/test_multiple_loops.cpp
index 9ebf33add8a..ae0e898d910 100644
--- a/examples/Reactor/Proactor/test_multiple_loops.cpp
+++ b/examples/Reactor/Proactor/test_multiple_loops.cpp
@@ -79,7 +79,7 @@ public:
};
int
-main (void)
+main (int, char *[])
{
Timeout_Handler handler;
ACE_Proactor proactor (0, 0, 1);
diff --git a/examples/Reactor/Proactor/test_timeout.cpp b/examples/Reactor/Proactor/test_timeout.cpp
index cfebe8a13cd..94a8915d777 100644
--- a/examples/Reactor/Proactor/test_timeout.cpp
+++ b/examples/Reactor/Proactor/test_timeout.cpp
@@ -66,7 +66,7 @@ public:
};
int
-main (void)
+main (int, char *[])
{
Timeout_Handler handler;
diff --git a/examples/Reactor/ReactorEx/test_exceptions.cpp b/examples/Reactor/ReactorEx/test_exceptions.cpp
index 7aef018fcc5..f399d34a393 100644
--- a/examples/Reactor/ReactorEx/test_exceptions.cpp
+++ b/examples/Reactor/ReactorEx/test_exceptions.cpp
@@ -50,7 +50,7 @@ public:
};
int
-main ()
+main (int, char *[])
{
Event_Handler *handler;
ACE_NEW_RETURN (handler, Event_Handler, -1);
diff --git a/examples/Reactor/ReactorEx/test_timeout.cpp b/examples/Reactor/ReactorEx/test_timeout.cpp
index 93e081653a3..c176c330856 100644
--- a/examples/Reactor/ReactorEx/test_timeout.cpp
+++ b/examples/Reactor/ReactorEx/test_timeout.cpp
@@ -47,7 +47,7 @@ private:
};
int
-main (void)
+main (int, char *[])
{
Timeout_Handler handler;
diff --git a/examples/Reactor/WFMO_Reactor/test_exceptions.cpp b/examples/Reactor/WFMO_Reactor/test_exceptions.cpp
index 7aef018fcc5..f399d34a393 100644
--- a/examples/Reactor/WFMO_Reactor/test_exceptions.cpp
+++ b/examples/Reactor/WFMO_Reactor/test_exceptions.cpp
@@ -50,7 +50,7 @@ public:
};
int
-main ()
+main (int, char *[])
{
Event_Handler *handler;
ACE_NEW_RETURN (handler, Event_Handler, -1);
diff --git a/examples/Reactor/WFMO_Reactor/test_timeout.cpp b/examples/Reactor/WFMO_Reactor/test_timeout.cpp
index 93e081653a3..c176c330856 100644
--- a/examples/Reactor/WFMO_Reactor/test_timeout.cpp
+++ b/examples/Reactor/WFMO_Reactor/test_timeout.cpp
@@ -47,7 +47,7 @@ private:
};
int
-main (void)
+main (int, char *[])
{
Timeout_Handler handler;
diff --git a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
index 268e10513db..2776139c802 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
@@ -81,7 +81,7 @@ main(int argc, char *argv[])
#else
#include <stdio.h>
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "This feature is not supported\n"), -1);
}
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
index c9abb6dc2b9..80931b584d4 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
@@ -89,7 +89,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "you must have TLI to run this test\n"), 1);
}
diff --git a/examples/Shared_Malloc/test_multiple_mallocs.cpp b/examples/Shared_Malloc/test_multiple_mallocs.cpp
index 28629c1ce43..91091c093b3 100644
--- a/examples/Shared_Malloc/test_multiple_mallocs.cpp
+++ b/examples/Shared_Malloc/test_multiple_mallocs.cpp
@@ -20,7 +20,7 @@ void *RESPONSE_BASE_ADDR = ((void *) (128 * 1024 * 1024));
const char *RESPONSE_STRING = "hello from response repository";
int
-main (void)
+main (int, char *[])
{
ACE_MMAP_Memory_Pool_Options request_options (REQUEST_BASE_ADDR);
diff --git a/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp b/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
index 7845fef37f8..123e1cfc910 100644
--- a/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
@@ -4,7 +4,7 @@
#include "test.h"
int
-main (void)
+main (int, char *[])
{
long pid = long (ACE_OS::getpid ());
ACE_SV_Message_Queue msgque (SRV_KEY);
diff --git a/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp b/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
index 15e213c9c50..839e85a2832 100644
--- a/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
@@ -16,7 +16,7 @@ handler (int)
}
int
-main (void)
+main (int, char *[])
{
long pid = long (ACE_OS::getpid ());
ACE_Message_Block recv_msg (SRV_ID);
diff --git a/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp b/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp
index 2e1cbd933e0..254e42300ca 100644
--- a/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp
@@ -5,7 +5,7 @@
#include "test.h"
int
-main (void)
+main (int, char *[])
{
long pid = long (ACE_OS::getpid ());
diff --git a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
index dbf265fd279..d6de4b7ba23 100644
--- a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
@@ -18,7 +18,7 @@ handler (int)
}
int
-main (void)
+main (int, char *[])
{
char *username = ACE_OS::cuserid (0);
Message_Data msg_data ((int) ACE_OS::getpid (), username, "I received your message.");
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
index 32686eef1f6..ae39e9d6a98 100644
--- a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
+++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
@@ -59,7 +59,7 @@ child (char *shm)
}
int
-main (void)
+main (int, char *[])
{
char *shm = (char *) allocator.malloc (27);
@@ -76,7 +76,7 @@ main (void)
}
}
#else
-int main (void)
+int main (int, char *[])
{
ACE_ERROR ((LM_ERROR,
"SYSV IPC is not supported on this platform\n"));
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
index deac90bc9c6..98c8b0591b2 100644
--- a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
+++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
@@ -70,7 +70,7 @@ child (char *shm)
}
int
-main (void)
+main (int, char *[])
{
char *shm = (char *) allocator.malloc (27);
@@ -87,7 +87,7 @@ main (void)
}
}
#else
-int main (void)
+int main (int, char *[])
{
ACE_ERROR ((LM_ERROR,
"SYSV IPC is not supported on this platform\n"));
diff --git a/examples/Threads/process_mutex.cpp b/examples/Threads/process_mutex.cpp
index 7a69d7d6faa..e78b2fe09fb 100644
--- a/examples/Threads/process_mutex.cpp
+++ b/examples/Threads/process_mutex.cpp
@@ -60,7 +60,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"ACE doesn't support support threads on this platform (yet)\n"),
diff --git a/examples/Threads/recursive_mutex.cpp b/examples/Threads/recursive_mutex.cpp
index 7525d2bc120..c2b398a3634 100644
--- a/examples/Threads/recursive_mutex.cpp
+++ b/examples/Threads/recursive_mutex.cpp
@@ -99,7 +99,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"ACE doesn't support support process mutexes on this platform (yet)\n"),
diff --git a/examples/Threads/thread_specific.cpp b/examples/Threads/thread_specific.cpp
index ee103c1d742..aacad3dd747 100644
--- a/examples/Threads/thread_specific.cpp
+++ b/examples/Threads/thread_specific.cpp
@@ -209,7 +209,7 @@ template class ACE_TSS<Errno>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"ACE doesn't support support threads on this platform (yet)\n"),
diff --git a/examples/Threads/token.cpp b/examples/Threads/token.cpp
index 4c41365a2ce..67b8555f7c8 100644
--- a/examples/Threads/token.cpp
+++ b/examples/Threads/token.cpp
@@ -66,7 +66,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform doesn't support threads\n"), -1);
}
diff --git a/examples/Threads/tss1.cpp b/examples/Threads/tss1.cpp
index d7f8bfed8d0..3c566324fad 100644
--- a/examples/Threads/tss1.cpp
+++ b/examples/Threads/tss1.cpp
@@ -179,7 +179,7 @@ template class Tester<ACE_MT_SYNCH>;
#else
int
-main (void)
+main (int, char *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"ACE doesn't support support threads on this platform (yet)\n"),
diff --git a/examples/Threads/wfmo.cpp b/examples/Threads/wfmo.cpp
index b72fc6eb147..25aab7b61b9 100644
--- a/examples/Threads/wfmo.cpp
+++ b/examples/Threads/wfmo.cpp
@@ -114,7 +114,7 @@ main (int argc, char *argv[])
}
#else
int
-main (void)
+main (int, char *[])
{
ACE_DEBUG ((LM_DEBUG, "this test only runs on Win32\n"));
}
diff --git a/tests/Hash_Map_Manager_Test.cpp b/tests/Hash_Map_Manager_Test.cpp
index 423c9884512..bc04edcd5e0 100644
--- a/tests/Hash_Map_Manager_Test.cpp
+++ b/tests/Hash_Map_Manager_Test.cpp
@@ -140,7 +140,7 @@ Dumb_String::operator char * (void) const
static const int MAX_HASH = 256;
int
-main(void)
+main (int, char *[])
{
ACE_START_TEST ("Hash_Map_Manager_Test");
diff --git a/tests/Simple_Message_Block_Test.cpp b/tests/Simple_Message_Block_Test.cpp
index 4f2b79accd2..8df789f9875 100644
--- a/tests/Simple_Message_Block_Test.cpp
+++ b/tests/Simple_Message_Block_Test.cpp
@@ -25,7 +25,7 @@
#include "test_config.h"
int
-main (void)
+main (int, char *[])
{
ACE_START_TEST ("Simple_Message_Block_Test");