diff options
Diffstat (limited to 'omapip/message.c')
-rw-r--r-- | omapip/message.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/omapip/message.c b/omapip/message.c index 254061a0..42b88b6d 100644 --- a/omapip/message.c +++ b/omapip/message.c @@ -158,7 +158,7 @@ isc_result_t omapi_message_set_value (omapi_object_t *h, if (status == ISC_R_SUCCESS) return status; } - + return ISC_R_NOTFOUND; } @@ -232,7 +232,7 @@ isc_result_t omapi_message_signal_handler (omapi_object_t *h, if (h -> type != omapi_type_message) return DHCP_R_INVALIDARG; m = (omapi_message_object_t *)h; - + if (!strcmp (name, "status")) { if (m -> notify_object && m -> notify_object -> type -> signal_handler) @@ -271,7 +271,7 @@ isc_result_t omapi_message_register (omapi_object_t *mo) if (mo -> type != omapi_type_message) return DHCP_R_INVALIDARG; m = (omapi_message_object_t *)mo; - + /* Already registered? */ if (m -> prev || m -> next || omapi_registered_messages == m) return DHCP_R_INVALIDARG; @@ -300,7 +300,7 @@ isc_result_t omapi_message_unregister (omapi_object_t *mo) if (mo -> type != omapi_type_message) return DHCP_R_INVALIDARG; m = (omapi_message_object_t *)mo; - + /* Not registered? */ if (!m -> prev && omapi_registered_messages != m) return DHCP_R_INVALIDARG; @@ -550,7 +550,7 @@ omapi_message_process_internal (omapi_object_t *mo, omapi_object_t *po) (po, message -> id_object, ISC_R_NOTFOUND, message -> id, "no object matches specification"); - } + } /* If we found an object, we're supposed to be creating an object, and we're not supposed to have found an object, @@ -622,7 +622,7 @@ omapi_message_process_internal (omapi_object_t *mo, omapi_object_t *po) "can't select authenticator"); } } - + /* Now send the new contents of the object back in response. */ goto send; @@ -636,7 +636,7 @@ omapi_message_process_internal (omapi_object_t *mo, omapi_object_t *po) status, message -> id, "no matching handle"); } - send: + send: status = omapi_protocol_send_update (po, message -> id_object, message -> id, object); omapi_object_dereference (&object, MDL); @@ -666,7 +666,7 @@ omapi_message_process_internal (omapi_object_t *mo, omapi_object_t *po) status, message -> id, "cannot update authenticator"); } - + status = omapi_protocol_add_auth (po, object, message -> h); } else { |