/* If we already have the data, fall through. */
case omapi_protocol_header_wait:
- status = omapi_message_allocate (&p -> message, MDL);
+ status = omapi_message_new ((omapi_object_t **)&p -> message,
+ MDL);
if (status != ISC_R_SUCCESS) {
omapi_disconnect (c, 1);
return status;
if (po -> type != omapi_type_protocol)
return ISC_R_INVALIDARG;
- status = omapi_message_allocate (&message, MDL);
+ status = omapi_message_new ((omapi_object_t **)&message, MDL);
if (status != ISC_R_SUCCESS)
return status;
mo = (omapi_object_t *)message;
if (po -> type != omapi_type_protocol)
return ISC_R_INVALIDARG;
- status = omapi_message_allocate (&message, MDL);
+ status = omapi_message_new ((omapi_object_t **)&message, MDL);
if (status != ISC_R_SUCCESS)
return status;
mo = (omapi_object_t *)message;