From nobody Sun Feb 8 17:22:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1584347782; cv=none; d=zohomail.com; s=zohoarc; b=Bf6pfRSH/C5rAfZ4t0GHqnMGurQsehJ11xwv4ZtZmP2fNluGZTKrayUvACIuzetu13cDOmafvJW1nYa+GpVM5t4hIGV3nff8YMejGGsw21lHV6ixfwoed7zQzqzZ6PGLegUAxVsHrjXI2XqAA+Bviod7G2Yyk2mNsq++PyhdRdk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584347782; 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=fPsV80CCL4MnkVuk5TPTqu8MDHxt+OZ1K6PLq1b/d6Q=; b=XOsf7kSTJN2rR9gEptq9SX1gGicfo+XG+2FrrY+VcZ73JFx7UlhwzwOGJ7Llar5kP7Ctw8QybwFIi2FMOvSG1QGmo/ebnvMMxAaCN/k8gU1LOD9cSGqcOy25k+xxn5ZnV5e+XmgicMYEP3qGi/cY4GgHWmrDZWg/+bN4MzlsCHo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1584347782417981.459441755718; Mon, 16 Mar 2020 01:36:22 -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-118-LBSBRIAWNBuRNC9DjZ051A-1; Mon, 16 Mar 2020 04:36:17 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 00B1D18B9FC2; Mon, 16 Mar 2020 08:36:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3E4B660C05; Mon, 16 Mar 2020 08:36:09 +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 E0D9986FED; Mon, 16 Mar 2020 08:36:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02G8a53F026218 for ; Mon, 16 Mar 2020 04:36:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 099C360BF3; Mon, 16 Mar 2020 08:36:05 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 83CDA60BFB for ; Mon, 16 Mar 2020 08:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584347780; 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=fPsV80CCL4MnkVuk5TPTqu8MDHxt+OZ1K6PLq1b/d6Q=; b=FGooteq80EaG+PUN13dIdx/sn1cRxMlRsXe1vaoOX1GPjS1+EJ+5A2c4d4INsUiD9XxR8y JdJgyKo7Nk8r/tpI63EJg2/XcrAuCxXnjPGD0W2tLVN1IjqyUG7sFEaGbK8MPVZf6+WE0W 9VehuILwc+iCt+rf0WlPRD2b7DH/9fI= X-MC-Unique: LBSBRIAWNBuRNC9DjZ051A-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 05/12] qemuAgentGetUsers: Fix return value on success Date: Mon, 16 Mar 2020 09:35:47 +0100 Message-Id: <3c8353df113cdcc48803445733036a237d0fbd6c.1584347691.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.12 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" Return 0 on success as per documentation and due to the fact that callers don't check the value. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index bc5d57ab94..c55b989467 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -2406,7 +2406,7 @@ qemuAgentGetUsers(qemuAgentPtr agent, return -1; } - return ndata; + return 0; } /* Returns: 0 on success --=20 2.24.1