mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
util: Remove VIR_ALLOC_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
7f1499b8c8
commit
988b34d85e
@ -75,20 +75,6 @@ void virDisposeString(char **strptr)
|
||||
*/
|
||||
#define VIR_ALLOC(ptr) virAlloc(&(ptr), sizeof(*(ptr)))
|
||||
|
||||
/**
|
||||
* VIR_ALLOC_QUIET:
|
||||
* @ptr: pointer to hold address of allocated memory
|
||||
*
|
||||
* Allocate sizeof(*ptr) bytes of memory and store
|
||||
* the address of allocated memory in 'ptr'. Fill the
|
||||
* newly allocated memory with zeros.
|
||||
*
|
||||
* This macro is safe to use on arguments with side effects.
|
||||
*
|
||||
* Returns 0 on success, aborts on OOM
|
||||
*/
|
||||
#define VIR_ALLOC_QUIET(ptr) VIR_ALLOC(ptr)
|
||||
|
||||
/**
|
||||
* VIR_ALLOC_N:
|
||||
* @ptr: pointer to hold address of allocated memory
|
||||
|
Loading…
Reference in New Issue
Block a user