diff options
Diffstat (limited to 'ace/QoS/QoS_Session_Impl.cpp')
-rw-r--r-- | ace/QoS/QoS_Session_Impl.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/ace/QoS/QoS_Session_Impl.cpp b/ace/QoS/QoS_Session_Impl.cpp index d012fc2cb2d..430ec8a6c1e 100644 --- a/ace/QoS/QoS_Session_Impl.cpp +++ b/ace/QoS/QoS_Session_Impl.cpp @@ -39,12 +39,6 @@ rsvp_callback (rapi_sid_t sid, void *args ) { - ACE_UNUSED_ARG (sid); - ACE_UNUSED_ARG (style_id); - ACE_UNUSED_ARG (filter_spec_no); - ACE_UNUSED_ARG (filter_spec_list); - ACE_UNUSED_ARG (ad_spec_no); - ACE_UNUSED_ARG (ad_spec_list); if (args == 0) ACE_DEBUG ((LM_DEBUG, @@ -162,8 +156,6 @@ rsvp_callback (rapi_sid_t sid, // Set the updated ACE_QoS for the RSVP callback argument(QoS session). qos_session->qos (ace_qos); - // @@ what is the meaning of the return value. RAPI docs don't say anything! - return 0; } // Constructor. @@ -207,9 +199,7 @@ ACE_RAPI_Session::open (ACE_INET_Addr dest_addr, int ACE_RAPI_Session::close (void) { - this->rsvp_error = rapi_release(this->session_id_); - - if (rsvp_error == 0) + if (rsvp_error = rapi_release(this->session_id_)) ACE_ERROR_RETURN ((LM_ERROR, "Can't release RSVP session:\n\t%s\n", rapi_errlist[rsvp_error]), @@ -217,7 +207,7 @@ ACE_RAPI_Session::close (void) else ACE_DEBUG ((LM_DEBUG, "rapi session with id %d released successfully.\n", - this->session_id_)); + this->session_id_)); return 0; } @@ -227,7 +217,6 @@ ACE_RAPI_Session::qos (ACE_SOCK *socket, const ACE_QoS &ace_qos) { ACE_UNUSED_ARG (socket); - ACE_UNUSED_ARG (qos_manager); // If sender : call sending_qos () // If receiver : call receiving_qos () |