summaryrefslogtreecommitdiff
path: root/apps/JAWS/clients/Caching/http_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS/clients/Caching/http_client.cpp')
-rw-r--r--apps/JAWS/clients/Caching/http_client.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/JAWS/clients/Caching/http_client.cpp b/apps/JAWS/clients/Caching/http_client.cpp
index afbc38a2513..f0bb20b6d56 100644
--- a/apps/JAWS/clients/Caching/http_client.cpp
+++ b/apps/JAWS/clients/Caching/http_client.cpp
@@ -18,13 +18,14 @@
// ============================================================================
#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"
#include "http_handler.h"
ACE_RCSID(Caching, http_client, "$Id$")
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
// Present a command line.
// * Accept a URL.
@@ -57,8 +58,8 @@ main (int, char *[])
while (isspace (*s));
// Shell command.
- if (ACE_OS::system (s) == -1)
- ACE_ERROR ((LM_ERROR, " ! Error executing: %s\n", s));
+ if (ACE_OS::system (ACE_TEXT_CHAR_TO_TCHAR (s)) == -1)
+ ACE_ERROR ((LM_ERROR, ACE_TEXT (" ! Error executing: %C\n"), s));
}
else if (ACE_OS::strncmp (s, "http://", 7) == 0)
{
@@ -67,12 +68,12 @@ main (int, char *[])
connector.connect (s);
}
else
- ACE_ERROR ((LM_ERROR, " ? I don't understand: %s\n", s));
+ ACE_ERROR ((LM_ERROR, ACE_TEXT (" ? I don't understand: %C\n"), s));
- ACE_ERROR ((LM_ERROR, "* "));
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("* ")));
}
- ACE_DEBUG ((LM_DEBUG, "\nBye!\n"));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nBye!\n")));
return 0;
}