osip_message.c (libosip2-5.0.0) | : | osip_message.c (libosip2-5.1.0) | ||
---|---|---|---|---|
skipping to change at line 208 | skipping to change at line 208 | |||
return OSIP_NOMEM; | return OSIP_NOMEM; | |||
} | } | |||
if (sip->req_uri != NULL) { | if (sip->req_uri != NULL) { | |||
i = osip_uri_clone (sip->req_uri, &(copy->req_uri)); | i = osip_uri_clone (sip->req_uri, &(copy->req_uri)); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
} | } | |||
#ifndef MINISIZE | #ifndef MINISIZE | |||
i = osip_list_clone(&sip->accepts, ©->accepts, (int (*)(void *, void **)) &osip_accept_clone); | i = osip_list_clone (&sip->accepts, ©->accepts, (int (*)(void *, void **)) &osip_accept_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->accept_encodings, ©->accept_encodings, (int (*)( void *, void **)) &osip_accept_encoding_clone); | i = osip_list_clone (&sip->accept_encodings, ©->accept_encodings, (int (*) (void *, void **)) &osip_accept_encoding_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->accept_languages, ©->accept_languages, (int (*)( void *, void **)) &osip_accept_language_clone); | i = osip_list_clone (&sip->accept_languages, ©->accept_languages, (int (*) (void *, void **)) &osip_accept_language_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->alert_infos, ©->alert_infos, (int (*)(void *, vo id **)) &osip_alert_info_clone); | i = osip_list_clone (&sip->alert_infos, ©->alert_infos, (int (*)(void *, v oid **)) &osip_alert_info_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->allows, ©->allows, (int (*)(void *, void **)) &o sip_allow_clone); | i = osip_list_clone (&sip->allows, ©->allows, (int (*)(void *, void **)) & osip_allow_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->authentication_infos, ©->authentication_infos, ( int (*)(void *, void **)) &osip_authentication_info_clone); | i = osip_list_clone (&sip->authentication_infos, ©->authentication_infos, (int (*)(void *, void **)) &osip_authentication_info_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->content_encodings, ©->content_encodings, (int (* )(void *, void **)) &osip_content_encoding_clone); | i = osip_list_clone (&sip->content_encodings, ©->content_encodings, (int ( *)(void *, void **)) &osip_content_encoding_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->error_infos, ©->error_infos, (int (*)(void *, vo id **)) &osip_error_info_clone); | i = osip_list_clone (&sip->error_infos, ©->error_infos, (int (*)(void *, v oid **)) &osip_error_info_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone(&sip->proxy_authentication_infos, ©->proxy_authenticat ion_infos, (int (*)(void *, void **)) &osip_proxy_authentication_info_clone); | i = osip_list_clone (&sip->proxy_authentication_infos, ©->proxy_authentica tion_infos, (int (*)(void *, void **)) &osip_proxy_authentication_info_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
#endif | #endif | |||
i = osip_list_clone(&sip->call_infos, ©->call_infos, (int (*)(void *, void **)) &osip_call_info_clone); | i = osip_list_clone (&sip->call_infos, ©->call_infos, (int (*)(void *, voi d **)) &osip_call_info_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
i = osip_list_clone (&sip->authorizations, ©->authorizations, (int (*)(voi d *, void **)) &osip_authorization_clone); | i = osip_list_clone (&sip->authorizations, ©->authorizations, (int (*)(voi d *, void **)) &osip_authorization_clone); | |||
if (i != 0) { | if (i != 0) { | |||
osip_message_free (copy); | osip_message_free (copy); | |||
return i; | return i; | |||
} | } | |||
if (sip->call_id != NULL) { | if (sip->call_id != NULL) { | |||
End of changes. 10 change blocks. | ||||
10 lines changed or deleted | 10 lines changed or added |