From nobody Mon Feb 9 03:31:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1603359435; cv=none; d=zohomail.com; s=zohoarc; b=dS6/3EyIA7rNwUvymXpxbKwlKQJoFOR3Zyx0P9IHPMQLj6pn0STHNshoyrmZNGDHt8qHNoz9k0yulkJW5wsQKoAYME3yfQDgwMLPaRDo0/sKTKi/b73Eg1Eqf14pLJdZ5JciGS46kHnMZtP6vJTQjit9LgaEbN4Gjv7YeSlkZkc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603359435; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Hi4nk+g3kDeqSipve4Sa2V5VeVekTu7EjQvZCxAManM=; b=b1SZdf9D6PbK1Xf+iYjZ4fx+cJ60/mBDoiEDO0Mu8AtdERrG5CijXECpJDUvG2cbQO0Cs/qd1EmRgOdux2PPmwtPo9KrLbqsqcC2sPAckIz/NLpcE/SgYZk0nPTx3T15pxfNL/XCzUMHNgSV3W4YCZ8IfAS78HKXTdjV0WeTrS8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1603359435533301.6135426393239; Thu, 22 Oct 2020 02:37:15 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-548-HaT7b_AHOJOJiN36IOt3pw-1; Thu, 22 Oct 2020 05:36:15 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7DDB81018F77; Thu, 22 Oct 2020 09:36:10 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 53CF755774; Thu, 22 Oct 2020 09:36:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1AE5A181A71F; Thu, 22 Oct 2020 09:36:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 09M9ZWmY024616 for ; Thu, 22 Oct 2020 05:35:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id DFFA45B4C0; Thu, 22 Oct 2020 09:35:32 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 371705B4A8 for ; Thu, 22 Oct 2020 09:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603359434; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Hi4nk+g3kDeqSipve4Sa2V5VeVekTu7EjQvZCxAManM=; b=a3tSdjuDcIMtlHmPJiAiuSdqAcuviKUIU9MnKEJkRnUOxFMAXBiLm3KHZKotq/M3kCY8jX zFIJ8YmBNYOoh22kKosoTNsah1wLskvq0yTqdxSjeMUY2CjGC2c993Nb2sFCrTd23XnujL BSTzAxGMo9Z2m01qX4mGCq5rVe1LI0k= X-MC-Unique: HaT7b_AHOJOJiN36IOt3pw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 15/15] virHashRemoveAll: Don't return number of removed items Date: Thu, 22 Oct 2020 11:35:06 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Nobody uses the return value. Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- src/util/virhash.c | 8 ++------ src/util/virhash.h | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/util/virhash.c b/src/util/virhash.c index 7a20b28379..301e485e69 100644 --- a/src/util/virhash.c +++ b/src/util/virhash.c @@ -579,15 +579,11 @@ _virHashRemoveAllIter(const void *payload G_GNUC_UNUS= ED, * * 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); } /** diff --git a/src/util/virhash.h b/src/util/virhash.h index d7cea75c35..029e6e83b7 100644 --- a/src/util/virhash.h +++ b/src/util/virhash.h @@ -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. --=20 2.26.2