mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
util: Remove VIR_REALLOC_N_QUIET
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
569fcd6e2e
commit
f4debada70
@ -134,21 +134,6 @@ void virDisposeString(char **strptr)
|
|||||||
*/
|
*/
|
||||||
#define VIR_REALLOC_N(ptr, count) virReallocN(&(ptr), sizeof(*(ptr)), (count))
|
#define VIR_REALLOC_N(ptr, count) virReallocN(&(ptr), sizeof(*(ptr)), (count))
|
||||||
|
|
||||||
/**
|
|
||||||
* VIR_REALLOC_N_QUIET:
|
|
||||||
* @ptr: pointer to hold address of allocated memory
|
|
||||||
* @count: number of elements to allocate
|
|
||||||
*
|
|
||||||
* Re-allocate an array of 'count' elements, each sizeof(*ptr)
|
|
||||||
* bytes long and store the address of allocated memory in
|
|
||||||
* 'ptr'. If 'ptr' grew, the added memory is uninitialized.
|
|
||||||
*
|
|
||||||
* This macro is safe to use on arguments with side effects.
|
|
||||||
*
|
|
||||||
* Returns 0 on success, aborts on OOM
|
|
||||||
*/
|
|
||||||
#define VIR_REALLOC_N_QUIET(ptr, count) VIR_REALLOC_N(ptr, count)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VIR_EXPAND_N:
|
* VIR_EXPAND_N:
|
||||||
* @ptr: pointer to hold address of allocated memory
|
* @ptr: pointer to hold address of allocated memory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user