summaryrefslogtreecommitdiff
path: root/netsvcs/clients
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-03-09 17:01:33 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-03-09 17:01:33 +0000
commite4ac565eb2d71c1f7418c96f7dd7212809ec145e (patch)
tree641fd22a7c7445abd08f5f07222405ad89155e6c /netsvcs/clients
parentbb4db27bce6fca7258b2e2999a5ccf7e1ed17aca (diff)
downloadATCD-e4ac565eb2d71c1f7418c96f7dd7212809ec145e.tar.gz
ChangeLogTag: Tue Mar 9 17:00:11 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'netsvcs/clients')
-rw-r--r--netsvcs/clients/Logger/direct_logging.cpp8
-rw-r--r--netsvcs/clients/Logger/indirect_logging.cpp15
2 files changed, 11 insertions, 12 deletions
diff --git a/netsvcs/clients/Logger/direct_logging.cpp b/netsvcs/clients/Logger/direct_logging.cpp
index d1880808e13..7a5a72fb26b 100644
--- a/netsvcs/clients/Logger/direct_logging.cpp
+++ b/netsvcs/clients/Logger/direct_logging.cpp
@@ -11,14 +11,14 @@
ACE_RCSID(Logger, direct_logging, "$Id$")
static u_short LOGGER_PORT = ACE_DEFAULT_SERVER_PORT;
-static const char *const LOGGER_HOST = ACE_DEFAULT_SERVER_HOST;
-static const char *const DATA = "hello world\n";
+static const ACE_TCHAR *const LOGGER_HOST = ACE_DEFAULT_SERVER_HOST;
+static const ACE_TCHAR *const DATA = ACE_TEXT("hello world\n");
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short logger_port = argc > 1 ? ACE_OS::atoi (argv[1]) : LOGGER_PORT;
- const char *logger_host = argc > 2 ? argv[2] : LOGGER_HOST;
+ const ACE_TCHAR *logger_host = argc > 2 ? argv[2] : LOGGER_HOST;
ACE_SOCK_Stream logger;
ACE_SOCK_Connector connector;
diff --git a/netsvcs/clients/Logger/indirect_logging.cpp b/netsvcs/clients/Logger/indirect_logging.cpp
index 2bec071fdaf..3e213c8d676 100644
--- a/netsvcs/clients/Logger/indirect_logging.cpp
+++ b/netsvcs/clients/Logger/indirect_logging.cpp
@@ -11,17 +11,16 @@
ACE_RCSID(Logger, indirect_logging, "$Id$")
-int
-main (int argc, char *argv[])
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- const char *prog_name = argv[0];
+ const ACE_TCHAR *prog_name = argv[0];
int iterations = argc < 2 ? 10 : ACE_OS::atoi (argv[1]);
- const char *logger_key = argc < 3 ? ACE_DEFAULT_LOGGER_KEY : argv[2];
+ const ACE_TCHAR *logger_key = argc < 3 ? ACE_DEFAULT_LOGGER_KEY : argv[2];
ACE_OS::srand ((u_int) ACE_OS::time (0));
- ACE_LOG_MSG->open (prog_name, ACE_Log_Msg::LOGGER,
- ACE_TEXT_CHAR_TO_TCHAR (logger_key));
+ ACE_LOG_MSG->open (prog_name, ACE_Log_Msg::LOGGER, logger_key);
ACE_DEBUG ((LM_STARTUP, "starting up the test\n"));
@@ -29,8 +28,8 @@ main (int argc, char *argv[])
{
size_t priority = ACE_OS::rand () % int (LM_MAX);
ACE_POW (priority);
- ACE_DEBUG ((ACE_Log_Priority (priority),
- "random message %d...\n",
+ ACE_DEBUG ((ACE_Log_Priority (priority),
+ "random message %d...\n",
priority));
}