diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-04 13:47:47 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-04 13:47:47 +0000 |
commit | 1c626e968584f7bea9cd5fcd7aae535451fb024a (patch) | |
tree | 861990bacbb8fc580ffb1ea1ea8d2b8891cbd3cf /examples | |
parent | f3d65d9cd5d6e86ddfdf561eacc7ad2ec07515d6 (diff) | |
download | ATCD-1c626e968584f7bea9cd5fcd7aae535451fb024a.tar.gz |
added args to main ()
Diffstat (limited to 'examples')
37 files changed, 37 insertions, 37 deletions
diff --git a/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-client.cpp b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-client.cpp index 09891379c86..80a67ef2515 100644 --- a/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-client.cpp +++ b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-client.cpp @@ -28,7 +28,7 @@ main (int, char *[]) } #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/FIFO_SAP/FIFO-Msg-server.cpp b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp index 6ad9575cdee..60990c5242b 100644 --- a/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp +++ b/examples/IPC_SAP/FIFO_SAP/FIFO-Msg-server.cpp @@ -33,7 +33,7 @@ main (int, char *[]) } #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/CPP-unclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp index fbf43c5ff7b..bfc8a0bf5ea 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp @@ -42,7 +42,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "this platform does not support UNIX-domain sockets\n"), -1); diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp index 00d5fceb61b..c733a018312 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp @@ -71,7 +71,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "this platform does not support UNIX-domain sockets\n"), -1); diff --git a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp index 11f6c3bc3c7..1735223065e 100644 --- a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp @@ -47,7 +47,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1); } diff --git a/examples/IPC_SAP/SPIPE_SAP/client.cpp b/examples/IPC_SAP/SPIPE_SAP/client.cpp index 80c5476fbba..5ae194c9020 100644 --- a/examples/IPC_SAP/SPIPE_SAP/client.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/client.cpp @@ -34,7 +34,7 @@ main (int argc, char *argv[]) } #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/SPIPE_SAP/consumer_msg.cpp b/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp index eadf5746350..e8c5daa04c8 100644 --- a/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/consumer_msg.cpp @@ -43,7 +43,7 @@ main (int argc, char *argv[]) } #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/SPIPE_SAP/consumer_read.cpp b/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp index 5cf5427e4b6..c9321e8411a 100644 --- a/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/consumer_read.cpp @@ -40,7 +40,7 @@ main (int argc, char *argv[]) } #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/SPIPE_SAP/producer_msg.cpp b/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp index e2f2940e75f..c3bea44b16c 100644 --- a/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/producer_msg.cpp @@ -44,7 +44,7 @@ main (int argc, char *argv[]) } #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/SPIPE_SAP/producer_read.cpp b/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp index 1e7c53dffef..8a3d2445554 100644 --- a/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/producer_read.cpp @@ -41,7 +41,7 @@ main (int argc, char *argv[]) } #else #include <stdio.h> -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "this feature is not supported"), -1); } diff --git a/examples/IPC_SAP/SPIPE_SAP/server.cpp b/examples/IPC_SAP/SPIPE_SAP/server.cpp index 574e96e2975..e46cb71f86b 100644 --- a/examples/IPC_SAP/SPIPE_SAP/server.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/server.cpp @@ -109,7 +109,7 @@ main (int argc, char *argv[]) } #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/TLI_SAP/CPP-client.cpp b/examples/IPC_SAP/TLI_SAP/CPP-client.cpp index 14e3a63d4ba..d45370e1984 100644 --- a/examples/IPC_SAP/TLI_SAP/CPP-client.cpp +++ b/examples/IPC_SAP/TLI_SAP/CPP-client.cpp @@ -58,7 +58,7 @@ int main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support ACE_TLI\n"), 1); diff --git a/examples/IPC_SAP/TLI_SAP/CPP-server.cpp b/examples/IPC_SAP/TLI_SAP/CPP-server.cpp index a47023b3609..81eef30b56b 100644 --- a/examples/IPC_SAP/TLI_SAP/CPP-server.cpp +++ b/examples/IPC_SAP/TLI_SAP/CPP-server.cpp @@ -61,7 +61,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support ACE_TLI\n"), 1); } diff --git a/examples/IPC_SAP/TLI_SAP/db-client.cpp b/examples/IPC_SAP/TLI_SAP/db-client.cpp index 4e37630b43d..e883d022aab 100644 --- a/examples/IPC_SAP/TLI_SAP/db-client.cpp +++ b/examples/IPC_SAP/TLI_SAP/db-client.cpp @@ -45,7 +45,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support ACE_TLI\n"), 1); } diff --git a/examples/IPC_SAP/TLI_SAP/db-server.cpp b/examples/IPC_SAP/TLI_SAP/db-server.cpp index ca4a63abb10..58b1f02663a 100644 --- a/examples/IPC_SAP/TLI_SAP/db-server.cpp +++ b/examples/IPC_SAP/TLI_SAP/db-server.cpp @@ -102,7 +102,7 @@ main (int argc, char *argv[]) } #else #include <stdio.h> -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support ACE_TLI\n"), 1); } diff --git a/examples/IPC_SAP/TLI_SAP/ftp-client.cpp b/examples/IPC_SAP/TLI_SAP/ftp-client.cpp index ae5bdece3f5..d8ba5fc15eb 100644 --- a/examples/IPC_SAP/TLI_SAP/ftp-client.cpp +++ b/examples/IPC_SAP/TLI_SAP/ftp-client.cpp @@ -38,7 +38,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support ACE_TLI\n"), 1); } diff --git a/examples/IPC_SAP/TLI_SAP/ftp-server.cpp b/examples/IPC_SAP/TLI_SAP/ftp-server.cpp index a05d1aa55c8..e6b13b87529 100644 --- a/examples/IPC_SAP/TLI_SAP/ftp-server.cpp +++ b/examples/IPC_SAP/TLI_SAP/ftp-server.cpp @@ -67,7 +67,7 @@ main (int argc, char *argv[]) } #else #include <stdio.h> -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support ACE_TLI\n"), 1); } diff --git a/examples/Naming/test_multiple_contexts.cpp b/examples/Naming/test_multiple_contexts.cpp index 2b6c9d8468d..36618406627 100644 --- a/examples/Naming/test_multiple_contexts.cpp +++ b/examples/Naming/test_multiple_contexts.cpp @@ -1,6 +1,6 @@ #include "ace/Naming_Context.h" -int main () +int main (int, char *[]) { static u_long ACE_DEFAULT_BASE_ADDR_1 = (1 * 64 * 1024 * 1024); diff --git a/examples/Naming/test_non_existent.cpp b/examples/Naming/test_non_existent.cpp index 4c43b60fc57..6f9b4f3dd3c 100644 --- a/examples/Naming/test_non_existent.cpp +++ b/examples/Naming/test_non_existent.cpp @@ -1,6 +1,6 @@ #include "ace/Naming_Context.h" -int main () +int main (int, char *[]) { int i; diff --git a/examples/Naming/test_writers.cpp b/examples/Naming/test_writers.cpp index b00eca955e3..c8ed315cf1e 100644 --- a/examples/Naming/test_writers.cpp +++ b/examples/Naming/test_writers.cpp @@ -1,6 +1,6 @@ #include "ace/Naming_Context.h" -int main () +int main (int, char *[]) { int i; diff --git a/examples/Reactor/ReactorEx/test_console_input.cpp b/examples/Reactor/ReactorEx/test_console_input.cpp index 56fe8b7118f..8da38cc3037 100644 --- a/examples/Reactor/ReactorEx/test_console_input.cpp +++ b/examples/Reactor/ReactorEx/test_console_input.cpp @@ -68,7 +68,7 @@ Event_Handler::handle_close (ACE_HANDLE handle, } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/ReactorEx/test_directory_changes.cpp b/examples/Reactor/ReactorEx/test_directory_changes.cpp index cc5c11a7601..0761baa61d8 100644 --- a/examples/Reactor/ReactorEx/test_directory_changes.cpp +++ b/examples/Reactor/ReactorEx/test_directory_changes.cpp @@ -99,7 +99,7 @@ worker (void) } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/ReactorEx/test_exceptions.cpp b/examples/Reactor/ReactorEx/test_exceptions.cpp index 88d152004aa..7a975ec1d12 100644 --- a/examples/Reactor/ReactorEx/test_exceptions.cpp +++ b/examples/Reactor/ReactorEx/test_exceptions.cpp @@ -75,7 +75,7 @@ public: }; int -main (void) +main (int, char *[]) { Event_Handler handler; ACE_ReactorEx::instance ()->register_handler (&handler); diff --git a/examples/Reactor/ReactorEx/test_network_events.cpp b/examples/Reactor/ReactorEx/test_network_events.cpp index b8f9ae807a8..5ab83cb2d23 100644 --- a/examples/Reactor/ReactorEx/test_network_events.cpp +++ b/examples/Reactor/ReactorEx/test_network_events.cpp @@ -170,7 +170,7 @@ Network_Listener::handle_close (ACE_HANDLE handle, } int -main (void) +main (int, char *[]) { Network_Listener listener; diff --git a/examples/Reactor/ReactorEx/test_registration.cpp b/examples/Reactor/ReactorEx/test_registration.cpp index cbd28bb2fde..24fd6a0cedb 100644 --- a/examples/Reactor/ReactorEx/test_registration.cpp +++ b/examples/Reactor/ReactorEx/test_registration.cpp @@ -136,7 +136,7 @@ worker (void) } int -main (void) +main (int, char *[]) { ACE_ASSERT (reactorEx.register_handler (&simple_handler, simple_handler.event1_.handle ()) == 0); diff --git a/examples/Reactor/ReactorEx/test_registry_changes.cpp b/examples/Reactor/ReactorEx/test_registry_changes.cpp index 2057d01fce4..3f42bd6a831 100644 --- a/examples/Reactor/ReactorEx/test_registry_changes.cpp +++ b/examples/Reactor/ReactorEx/test_registry_changes.cpp @@ -118,7 +118,7 @@ worker (Event_Handler *event_handler) } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/ReactorEx/test_timeouts.cpp b/examples/Reactor/ReactorEx/test_timeouts.cpp index a2ec19108ee..ce5925ac679 100644 --- a/examples/Reactor/ReactorEx/test_timeouts.cpp +++ b/examples/Reactor/ReactorEx/test_timeouts.cpp @@ -52,7 +52,7 @@ private: }; int -main (void) +main (int, char *[]) { Timeout_Handler handler; diff --git a/examples/Reactor/WFMO_Reactor/test_console_input.cpp b/examples/Reactor/WFMO_Reactor/test_console_input.cpp index 56fe8b7118f..8da38cc3037 100644 --- a/examples/Reactor/WFMO_Reactor/test_console_input.cpp +++ b/examples/Reactor/WFMO_Reactor/test_console_input.cpp @@ -68,7 +68,7 @@ Event_Handler::handle_close (ACE_HANDLE handle, } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/WFMO_Reactor/test_directory_changes.cpp b/examples/Reactor/WFMO_Reactor/test_directory_changes.cpp index cc5c11a7601..0761baa61d8 100644 --- a/examples/Reactor/WFMO_Reactor/test_directory_changes.cpp +++ b/examples/Reactor/WFMO_Reactor/test_directory_changes.cpp @@ -99,7 +99,7 @@ worker (void) } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/WFMO_Reactor/test_exceptions.cpp b/examples/Reactor/WFMO_Reactor/test_exceptions.cpp index 88d152004aa..7a975ec1d12 100644 --- a/examples/Reactor/WFMO_Reactor/test_exceptions.cpp +++ b/examples/Reactor/WFMO_Reactor/test_exceptions.cpp @@ -75,7 +75,7 @@ public: }; int -main (void) +main (int, char *[]) { Event_Handler handler; ACE_ReactorEx::instance ()->register_handler (&handler); diff --git a/examples/Reactor/WFMO_Reactor/test_network_events.cpp b/examples/Reactor/WFMO_Reactor/test_network_events.cpp index b8f9ae807a8..5ab83cb2d23 100644 --- a/examples/Reactor/WFMO_Reactor/test_network_events.cpp +++ b/examples/Reactor/WFMO_Reactor/test_network_events.cpp @@ -170,7 +170,7 @@ Network_Listener::handle_close (ACE_HANDLE handle, } int -main (void) +main (int, char *[]) { Network_Listener listener; diff --git a/examples/Reactor/WFMO_Reactor/test_registration.cpp b/examples/Reactor/WFMO_Reactor/test_registration.cpp index cbd28bb2fde..24fd6a0cedb 100644 --- a/examples/Reactor/WFMO_Reactor/test_registration.cpp +++ b/examples/Reactor/WFMO_Reactor/test_registration.cpp @@ -136,7 +136,7 @@ worker (void) } int -main (void) +main (int, char *[]) { ACE_ASSERT (reactorEx.register_handler (&simple_handler, simple_handler.event1_.handle ()) == 0); diff --git a/examples/Reactor/WFMO_Reactor/test_registry_changes.cpp b/examples/Reactor/WFMO_Reactor/test_registry_changes.cpp index 2057d01fce4..3f42bd6a831 100644 --- a/examples/Reactor/WFMO_Reactor/test_registry_changes.cpp +++ b/examples/Reactor/WFMO_Reactor/test_registry_changes.cpp @@ -118,7 +118,7 @@ worker (Event_Handler *event_handler) } int -main (void) +main (int, char *[]) { ACE_ReactorEx reactorEx; Event_Handler handler (reactorEx); diff --git a/examples/Reactor/WFMO_Reactor/test_timeouts.cpp b/examples/Reactor/WFMO_Reactor/test_timeouts.cpp index a2ec19108ee..ce5925ac679 100644 --- a/examples/Reactor/WFMO_Reactor/test_timeouts.cpp +++ b/examples/Reactor/WFMO_Reactor/test_timeouts.cpp @@ -52,7 +52,7 @@ private: }; int -main (void) +main (int, char *[]) { Timeout_Handler handler; diff --git a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp index 0ef3534d2a7..a9c62bba081 100644 --- a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp +++ b/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp @@ -80,7 +80,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1); } diff --git a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp index fcc4c474bda..a145a602fad 100644 --- a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp +++ b/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp @@ -115,7 +115,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1); } diff --git a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp index 6d01a999534..ff5a500c022 100644 --- a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp +++ b/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp @@ -78,7 +78,7 @@ main (int argc, char *argv[]) return 0; } #else -int main (void) +int main (int, char *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1); } |