summaryrefslogtreecommitdiff
path: root/TAO/examples/POA
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 01:42:26 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 01:42:26 +0000
commit46eeb3bb628bf491d6039ee557cbd62bf70566c9 (patch)
tree4ca890592f76e627165839dee775e5d4adb1c2d5 /TAO/examples/POA
parent9bd6301acfcedc9854b0b616fb83cecccd0eda05 (diff)
downloadATCD-46eeb3bb628bf491d6039ee557cbd62bf70566c9.tar.gz
ChangeLogTag:Tue Sep 22 19:18:36 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/examples/POA')
-rw-r--r--TAO/examples/POA/On_Demand_Activation/server.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/examples/POA/On_Demand_Activation/server.cpp b/TAO/examples/POA/On_Demand_Activation/server.cpp
index 51c71fc9ec4..49157e2a384 100644
--- a/TAO/examples/POA/On_Demand_Activation/server.cpp
+++ b/TAO/examples/POA/On_Demand_Activation/server.cpp
@@ -72,12 +72,11 @@ write_iors_to_file (const char *first_ior,
ior_output_file_2),
-1);
- int result = 0;
-
- result = ACE_OS::fprintf (output_file_1,
- "%s",
- first_ior);
- if (result != ACE_OS::strlen (first_ior))
+ int result = ACE_OS::fprintf (output_file_1,
+ "%s",
+ first_ior);
+ if (result <= 0
+ || ACE_static_cast(size_t,result) != ACE_OS::strlen (first_ior))
ACE_ERROR_RETURN ((LM_ERROR,
"ACE_OS::fprintf failed while writing %s to %s\n",
first_ior,
@@ -87,7 +86,8 @@ write_iors_to_file (const char *first_ior,
result = ACE_OS::fprintf (output_file_2,
"%s",
second_ior);
- if (result != ACE_OS::strlen (second_ior))
+ if (result <= 0
+ || ACE_static_cast(size_t,result) != ACE_OS::strlen (second_ior))
ACE_ERROR_RETURN ((LM_ERROR,
"ACE_OS::fprintf failed while writing %s to %s\n",
second_ior,