summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-04-27 20:25:10 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-04-27 20:25:10 +0000
commitc66970f5695a104d2f906d3a072dcefe18129463 (patch)
tree1f17f213a9e3a0c55df2d65b2104dea77c5b6e5f
parent5438ce1f8c17ee3e65ece6e9607d5f7d2eafde0f (diff)
downloadATCD-c66970f5695a104d2f906d3a072dcefe18129463.tar.gz
ChangeLogTag: Wed Apr 27 18:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--examples/Reactor/Misc/pingpong.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Reactor/Misc/pingpong.cpp b/examples/Reactor/Misc/pingpong.cpp
index 877b6ab740c..337aa4c063f 100644
--- a/examples/Reactor/Misc/pingpong.cpp
+++ b/examples/Reactor/Misc/pingpong.cpp
@@ -255,12 +255,12 @@ worker (void *arg)
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_LOG_MSG->open (argv[0]);
-
if (argc != 2)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("usage: %n string\n%a"),
- 1));
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("usage: pingpong <string>\n")),
+ -1);
+
+ ACE_LOG_MSG->open (argv[0]);
string_name = argv[1];