mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
virHashRemoveAll: Don't return number of removed items
Nobody uses the return value. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
7c1a4bc775
commit
4505f11d65
@ -579,15 +579,11 @@ _virHashRemoveAllIter(const void *payload G_GNUC_UNUSED,
|
|||||||
*
|
*
|
||||||
* Free the hash @table's contents. The userdata is
|
* Free the hash @table's contents. The userdata is
|
||||||
* deallocated with the function provided at creation time.
|
* deallocated with the function provided at creation time.
|
||||||
*
|
|
||||||
* Returns the number of items removed on success, -1 on failure
|
|
||||||
*/
|
*/
|
||||||
ssize_t
|
void
|
||||||
virHashRemoveAll(virHashTablePtr table)
|
virHashRemoveAll(virHashTablePtr table)
|
||||||
{
|
{
|
||||||
return virHashRemoveSet(table,
|
virHashRemoveSet(table, _virHashRemoveAllIter, NULL);
|
||||||
_virHashRemoveAllIter,
|
|
||||||
NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -83,7 +83,7 @@ int virHashRemoveEntry(virHashTablePtr table,
|
|||||||
/*
|
/*
|
||||||
* Remove all entries from the hash table.
|
* Remove all entries from the hash table.
|
||||||
*/
|
*/
|
||||||
ssize_t virHashRemoveAll(virHashTablePtr table);
|
void virHashRemoveAll(virHashTablePtr table);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Retrieve the userdata.
|
* Retrieve the userdata.
|
||||||
|
Loading…
Reference in New Issue
Block a user