summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Custom_Marshal
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-10-08 12:56:33 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-10-08 12:56:33 +0000
commit0fdc37ef6ac89595e8978fcfe101c433ead1fc69 (patch)
treeb981310bb234d06c7a885d0c34ba3da5c5385078 /TAO/orbsvcs/tests/EC_Custom_Marshal
parentb6b2f137a49b86e5471f067d7c0c6247e9ceeb3a (diff)
downloadATCD-0fdc37ef6ac89595e8978fcfe101c433ead1fc69.tar.gz
Wed Oct 8 12:54:45 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/orbsvcs/tests/EC_Custom_Marshal')
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp6
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h2
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp6
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
index a029c1108cf..e2dad9a73b6 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
@@ -81,7 +81,7 @@ Driver::run (int argc, ACE_TCHAR* argv[])
this->event_a_,
this->event_b_,
- this->pid_file_name_?this->pid_file_name_:"nil") );
+ this->pid_file_name_?this->pid_file_name_:ACE_TEXT("nil")) );
if (this->pid_file_name_ != 0)
{
@@ -288,7 +288,7 @@ Driver::disconnect_consumers (void)
}
int
-Driver::parse_args (int argc, char *argv [])
+Driver::parse_args (int argc, ACE_TCHAR *argv [])
{
ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("dc:n:h:p:"));
int opt;
@@ -308,7 +308,7 @@ Driver::parse_args (int argc, char *argv [])
case 'h':
{
char* aux;
- char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux);
+ char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux);
this->event_a_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg);
arg = ACE_OS::strtok_r (0, ",", &aux);
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h
index 3389fd1c50c..43136a67049 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.h
@@ -103,7 +103,7 @@ private:
int event_b_;
// We send two types of events, with different contents.
- const char* pid_file_name_;
+ const ACE_TCHAR* pid_file_name_;
// The name of a file where the process stores its pid
TAO_SYNCH_MUTEX recv_count_mutex_;
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
index 6acf341c23b..bcb95d23cfb 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
@@ -72,7 +72,7 @@ ECMS_Driver::run (int argc, ACE_TCHAR* argv[])
this->event_a_,
this->event_b_,
- this->pid_file_name_?this->pid_file_name_:"nil") );
+ this->pid_file_name_?this->pid_file_name_:ACE_TEXT("nil")) );
if (this->pid_file_name_ != 0)
{
@@ -307,7 +307,7 @@ ECMS_Driver::disconnect_suppliers (void)
}
int
-ECMS_Driver::parse_args (int argc, char *argv [])
+ECMS_Driver::parse_args (int argc, ACE_TCHAR *argv [])
{
ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("ds:n:t:h:p:b:"));
int opt;
@@ -335,7 +335,7 @@ ECMS_Driver::parse_args (int argc, char *argv [])
case 'h':
{
char* aux;
- char* arg = ACE_OS::strtok_r (get_opt.opt_arg (), ",", &aux);
+ char* arg = ACE_OS::strtok_r (ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ()), ",", &aux);
this->event_a_ = ACE_ES_EVENT_UNDEFINED + ACE_OS::atoi (arg);
arg = ACE_OS::strtok_r (0, ",", &aux);
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h
index 9390c8ea998..cf6cedf110a 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.h
@@ -134,7 +134,7 @@ private:
int event_b_;
// We send two types of events, with different contents.
- const char* pid_file_name_;
+ const ACE_TCHAR* pid_file_name_;
// The name of a file where the process stores its pid
};