From nobody Sun Nov 10 21:40:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1687948106; cv=none; d=zohomail.com; s=zohoarc; b=QLEhQNUkbNciVHdluGLSZIMXzMg06wRXttKNpuZpgpo3DAfZh19bFnCSp1yTuW3wyp9PxCqHJ1hHzUWQPd8gj4LpJkQbRfDREnCYRW1LZFY6iZR0pCQd0FVdEp06068QUn0nLkPveW5uCxXyMGb+DtJvWGltMQW6KEtbSDveLXE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687948106; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=+ffFOawf9FFji6QAhPmmNd0X3A/5N0E0C1FWRRJ66xk=; b=A+ppPEhCzUv16mZiCiIfaZcTcfz2+II7gJXnK881EVBtQpirHqpYzpq7Ft9CB/zJmBHDijCTX+oB1xJf//XM5uS/LEhEdqi95kVYaS2C3wwnupJykwLCtXBexbx1pUkzPDeUcC66yHJsPjbATcVoF2Hne/CbPImQP79v1UJUEO0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 168794810696051.64045818290185; Wed, 28 Jun 2023 03:28:26 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-318-tqkUdUDMNDmgX2iZZ0wedw-1; Wed, 28 Jun 2023 06:28:21 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D3E6D858290; Wed, 28 Jun 2023 10:28:18 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B91C2492B02; Wed, 28 Jun 2023 10:28:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 74F9A1946589; Wed, 28 Jun 2023 10:28:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 12ED6194658C for ; Wed, 28 Jun 2023 10:28:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 46807140EBB8; Wed, 28 Jun 2023 10:28:00 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.2.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id E230C1400C35 for ; Wed, 28 Jun 2023 10:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687948105; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=+ffFOawf9FFji6QAhPmmNd0X3A/5N0E0C1FWRRJ66xk=; b=W9VOl7Lq+VhkKvyzDcI434dftQk7ROspwXtb/jYkUoErFi7XosAhfDX0fpFjwxLjKs/xiN rHW0z5IIL0XxsIfkrcoJD2YKKKzn5coXT6Qntd8r0NM34ojglA+dR2NgI76Lyx8X3fAuWk 7VEhrJ9XI+ddFDURgRI0kluxMb6CBpU= X-MC-Unique: tqkUdUDMNDmgX2iZZ0wedw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] domain_event: Drop virDomainEventMemoryDeviceSizeChangePtr Date: Wed, 28 Jun 2023 12:27:56 +0200 Message-Id: <53035b75bdb7011f79454547a6d7b2a0bb5b90e6.1687948076.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687948107615100001 Content-Type: text/plain; charset="utf-8"; x-default="true" We dropped our private virXXXPtr typedefs in v7.3.0-rc1~229 but somehow v7.9.0-rc1~292 introduced one back: virDomainEventMemoryDeviceSizeChangePtr. There's no need for it and it's internal only. Drop it. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- src/conf/domain_event.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c index 94b7335e56..75603a933a 100644 --- a/src/conf/domain_event.c +++ b/src/conf/domain_event.c @@ -284,7 +284,6 @@ struct _virDomainEventMemoryDeviceSizeChange { unsigned long long size; }; typedef struct _virDomainEventMemoryDeviceSizeChange virDomainEventMemoryD= eviceSizeChange; -typedef virDomainEventMemoryDeviceSizeChange *virDomainEventMemoryDeviceSi= zeChangePtr; =20 static int virDomainEventsOnceInit(void) @@ -554,7 +553,7 @@ virDomainEventMemoryFailureDispose(void *obj) static void virDomainEventMemoryDeviceSizeChangeDispose(void *obj) { - virDomainEventMemoryDeviceSizeChangePtr event =3D obj; + virDomainEventMemoryDeviceSizeChange *event =3D obj; VIR_DEBUG("obj=3D%p", event); =20 g_free(event->alias); @@ -1692,7 +1691,7 @@ virDomainEventMemoryDeviceSizeChangeNew(int id, const char *alias, unsigned long long size) { - virDomainEventMemoryDeviceSizeChangePtr ev; + virDomainEventMemoryDeviceSizeChange *ev; =20 if (virDomainEventsInitialize() < 0) return NULL; @@ -2033,9 +2032,9 @@ virDomainEventDispatchDefaultFunc(virConnectPtr conn, =20 case VIR_DOMAIN_EVENT_ID_MEMORY_DEVICE_SIZE_CHANGE: { - virDomainEventMemoryDeviceSizeChangePtr memoryDeviceSizeChange= Event; + virDomainEventMemoryDeviceSizeChange *memoryDeviceSizeChangeEv= ent; =20 - memoryDeviceSizeChangeEvent =3D (virDomainEventMemoryDeviceSiz= eChangePtr)event; + memoryDeviceSizeChangeEvent =3D (virDomainEventMemoryDeviceSiz= eChange *)event; ((virConnectDomainEventMemoryDeviceSizeChangeCallback)cb)(conn= , dom, memo= ryDeviceSizeChangeEvent->alias, memo= ryDeviceSizeChangeEvent->size, --=20 2.39.3