From nobody Tue Feb 10 05:44:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1560874610; cv=none; d=zoho.com; s=zohoarc; b=ITaDZD3UhlwGEDhPHdk4XJFfZ9fl95UxaVx3AI0XtR61g/4oC2B4B+gG5pt4rwqaAJhP2vF1fD7v9s74JlhX9FbihRYgk7/mRv2n9EyarwLeZBp+s6GN8WwSMzv+d3i1HT9oaVJYw+m9/S6ZmEqMX9F/ASxeX+fDArbLJdkaPc4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560874610; 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:ARC-Authentication-Results; bh=mu+5ACmfpsFzMOlY0hQGyj5DUiM3Hgov3N3suozkaWo=; b=hSrvO38cwd83R6dgp/8XjH2q7kyu2qH/kRuJ5RZ4x3DsC/Evtj0tj1HJRCy1+20MY7NvEdCk11ttKLiOaE4ds+GJ7KQ8xvhwbAqSrBtxlu/jNd9aqNMCuXIqDvAzR50l9ZAYiQGxeYep1j3Wzi3NWPVyTapFIpFzdGOKRY7WV5A= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1560874610216484.17011075968605; Tue, 18 Jun 2019 09:16:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8B218A4540; Tue, 18 Jun 2019 16:16:48 +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 3DE8E5F7C1; Tue, 18 Jun 2019 16:16:48 +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 E35671806B1D; Tue, 18 Jun 2019 16:16:47 +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 x5IGDbkt024404 for ; Tue, 18 Jun 2019 12:13:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id A5C0C60FAB; Tue, 18 Jun 2019 16:13:37 +0000 (UTC) Received: from aegolius.redhat.com (ovpn-117-198.phx2.redhat.com [10.3.117.198]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 743188518 for ; Tue, 18 Jun 2019 16:13:37 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:13:10 -0500 Message-Id: <20190618161316.1722-41-jjongsma@redhat.com> In-Reply-To: <20190618161316.1722-1-jjongsma@redhat.com> References: <20190618161316.1722-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 40/46] src/vmware: use #pragma once in headers 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 18 Jun 2019 16:16:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/vmware/vmware_conf.h | 19 ++++++++----------- src/vmware/vmware_driver.h | 5 +---- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/vmware/vmware_conf.h b/src/vmware/vmware_conf.h index 93b424ef2f..deeed22300 100644 --- a/src/vmware/vmware_conf.h +++ b/src/vmware/vmware_conf.h @@ -18,18 +18,17 @@ * . */ =20 -#ifndef LIBVIRT_VMWARE_CONF_H -# define LIBVIRT_VMWARE_CONF_H +#pragma once =20 -# define NOGUI "nogui" +#define NOGUI "nogui" =20 -# include "internal.h" -# include "virdomainobjlist.h" -# include "virthread.h" -# include "virenum.h" +#include "internal.h" +#include "virdomainobjlist.h" +#include "virthread.h" +#include "virenum.h" =20 -# define VIR_FROM_THIS VIR_FROM_VMWARE -# define PROGRAM_SENTINEL ((char *)0x1) +#define VIR_FROM_THIS VIR_FROM_VMWARE +#define PROGRAM_SENTINEL ((char *)0x1) =20 enum vmwareDriverType { VMWARE_DRIVER_PLAYER =3D 0, /* VMware Player */ @@ -85,5 +84,3 @@ int vmwareMakePath(char *srcDir, char *srcName, char *src= Ext, int vmwareExtractPid(const char * vmxPath); =20 char *vmwareCopyVMXFileName(const char *datastorePath, void *opaque); - -#endif /* LIBVIRT_VMWARE_CONF_H */ diff --git a/src/vmware/vmware_driver.h b/src/vmware/vmware_driver.h index e66d222a51..1b28db5977 100644 --- a/src/vmware/vmware_driver.h +++ b/src/vmware/vmware_driver.h @@ -16,9 +16,6 @@ * . */ =20 -#ifndef LIBVIRT_VMWARE_DRIVER_H -# define LIBVIRT_VMWARE_DRIVER_H +#pragma once =20 int vmwareRegister(void); - -#endif /* LIBVIRT_VMWARE_DRIVER_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list