]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virHashRemoveAll: Don't return number of removed items
authorPeter Krempa <pkrempa@redhat.com>
Wed, 21 Oct 2020 12:57:36 +0000 (14:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 22 Oct 2020 13:02:46 +0000 (15:02 +0200)
Nobody uses the return value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/virhash.c
src/util/virhash.h

index 7a20b2837916ad3063b4e2f1c2d8fd5ed835ec16..301e485e69b1e8e01a4b822591067944d7be4670 100644 (file)
@@ -579,15 +579,11 @@ _virHashRemoveAllIter(const void *payload G_GNUC_UNUSED,
  *
  * Free the hash @table's contents. The userdata is
  * 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)
 {
-    return virHashRemoveSet(table,
-                            _virHashRemoveAllIter,
-                            NULL);
+    virHashRemoveSet(table, _virHashRemoveAllIter, NULL);
 }
 
 /**
index d7cea75c35af457b17117f5f6230a9916c3ffed9..029e6e83b71419499b86c1deac61c1d47440e844 100644 (file)
@@ -83,7 +83,7 @@ int virHashRemoveEntry(virHashTablePtr table,
 /*
  * Remove all entries from the hash table.
  */
-ssize_t virHashRemoveAll(virHashTablePtr table);
+void virHashRemoveAll(virHashTablePtr table);
 
 /*
  * Retrieve the userdata.