diff options
author | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-11 21:38:36 +0000 |
---|---|---|
committer | alex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-11 21:38:36 +0000 |
commit | 394c59a7ceaf5537c6587c3fb565a23e6dd6b728 (patch) | |
tree | 49f0d0b23c4a932fca7b4378e642c3617ab3e678 | |
parent | 220677b183fd43f1996ab9289534322481d0f59b (diff) | |
download | ATCD-394c59a7ceaf5537c6587c3fb565a23e6dd6b728.tar.gz |
Fixed the warnings (control reaching end of block) and error (passing
u_long to close) which showed up on Linux(with config-linux.h)
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp index 575b4fe3dce..57abb16864e 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp @@ -58,6 +58,10 @@ class Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> { // = TITLE // Base class for the oneway and twoway handlers. + + friend class Handler_Factory; + // The factory has special permission. (to access svc ()). + public: virtual int open (void * = 0); // Generic initialization method. @@ -525,7 +529,8 @@ Handler_Factory::create_handler (ACE_SOCK_Acceptor &acceptor, return handler->activate (); #else handler->svc (); - handler->close (); + handler->close (0); + return 0; #endif /* ACE_HAS_THREADS */ } |