summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-22 15:15:16 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-01-22 15:15:16 +0000
commit8097fa3ddeb83614e7ca44bb81a80d2d7b1d0c42 (patch)
tree30aec98251acc18e6d2d1459577cac6602781055 /examples
parente1585c80fb852c085ecb6d91a4ef5a79df0522b7 (diff)
downloadATCD-8097fa3ddeb83614e7ca44bb81a80d2d7b1d0c42.tar.gz
(open): added return 0 in "true" branch of if statement so (open): that the function always returns a value
Diffstat (limited to 'examples')
-rw-r--r--examples/ASX/Event_Server/Event_Server/Supplier_Router.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/ASX/Event_Server/Event_Server/Supplier_Router.cpp b/examples/ASX/Event_Server/Event_Server/Supplier_Router.cpp
index a9f4ebb8521..ebcb664cca7 100644
--- a/examples/ASX/Event_Server/Event_Server/Supplier_Router.cpp
+++ b/examples/ASX/Event_Server/Event_Server/Supplier_Router.cpp
@@ -46,10 +46,13 @@ int
Supplier_Router::open (void *)
{
if (this->is_reader ())
- // Set the Peer_Router_Context to point back to us so that all the
- // Peer_Handler's <put> their incoming <Message_Blocks> to our
- // reader Task.
- this->context ()->peer_router (this);
+ {
+ // Set the Peer_Router_Context to point back to us so that all the
+ // Peer_Handler's <put> their incoming <Message_Blocks> to our
+ // reader Task.
+ this->context ()->peer_router (this);
+ return 0;
+ }
else // if (this->is_writer ()
// Make this an active object to handle the error cases in a