Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
#define SMB_XMALLOC_P(type) (type *)smb_xmalloc_array(sizeof(type),1)
#define SMB_XMALLOC_ARRAY(type,count) (type *)smb_xmalloc_array(sizeof(type),(count))
-#define TALLOC_REALLOC(ctx, ptr, count) _talloc_realloc(ctx, ptr, count, __location__)
#ifndef TALLOC_FREE
#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
#endif
goto error;
}
- *array = TALLOC_REALLOC(mem_ctx, *array,
- element_size * (*array_size));
+ *array = talloc_realloc_size(mem_ctx,
+ *array,
+ element_size * (*array_size));
if (*array == NULL) {
goto error;
msg->len, msg->notify.data);
if (buflen != len) {
- buf = (uint8_t *)TALLOC_REALLOC(send_ctx, buf, len);
+ buf = talloc_realloc(send_ctx, buf, uint8_t, len);
if (!buf)
return False;
buflen = len;