From nobody Mon Feb 9 19:05:13 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=1560876139; cv=none; d=zoho.com; s=zohoarc; b=fi7GvDNjBEOAUrn0hH80JichorYuwYX/guj7trct7JH6uQtdeaMHSkMQhm0CRt+ElVz/arZ8jTMbmb/koTOa1Vkz3QvL61LPb8gDy0quxXNbBxo9PCVP+XGMxq8ix+ZvTlQMp5ckfAFWNUl+geiu1l6NT0V2mfasDyw3QfbZVWA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560876139; 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=E48uHyqFGk4txvehWYDz0o3fxlGOdeOj2rNisgElOQw=; b=hqsxtolVkpT48oc5EZOn6RBgzoORch0cuGcgYU+nXVIdv5y4+ksxQLCwVp3dY8AbWrq7N0WUz+z3FJ1S70qdMSUu79rFiJL0QFOq6hfjhs/xZPm3/AYpAmbdJKB9jx5zWseXjIIkotCzW+o/IC8c/sbLl0a4KKMTWamHslgPQf0= 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 1560876139901826.693423610574; Tue, 18 Jun 2019 09:42:19 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id 26920772F9; Tue, 18 Jun 2019 16:42:13 +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 EE6DE84F4; Tue, 18 Jun 2019 16:42:11 +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 AC49A1806B19; Tue, 18 Jun 2019 16:42:10 +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 x5IGDZXv024354 for ; Tue, 18 Jun 2019 12:13:35 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8D14F60FAB; Tue, 18 Jun 2019 16:13:35 +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 5BACA84EF for ; Tue, 18 Jun 2019 16:13:35 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:13:04 -0500 Message-Id: <20190618161316.1722-35-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 34/46] util: sysinfo: 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.12 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:42:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/util/virsysinfo.h | 13 +++++-------- src/util/virsysinfopriv.h | 5 +---- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/util/virsysinfo.h b/src/util/virsysinfo.h index c0015834bc..f30809294b 100644 --- a/src/util/virsysinfo.h +++ b/src/util/virsysinfo.h @@ -19,13 +19,12 @@ * . */ =20 -#ifndef LIBVIRT_VIRSYSINFO_H -# define LIBVIRT_VIRSYSINFO_H +#pragma once =20 -# include "internal.h" -# include "virutil.h" -# include "virbuffer.h" -# include "virenum.h" +#include "internal.h" +#include "virutil.h" +#include "virbuffer.h" +#include "virenum.h" =20 typedef enum { VIR_SYSINFO_SMBIOS, @@ -152,5 +151,3 @@ bool virSysinfoIsEqual(virSysinfoDefPtr src, virSysinfoDefPtr dst); =20 VIR_ENUM_DECL(virSysinfo); - -#endif /* LIBVIRT_VIRSYSINFO_H */ diff --git a/src/util/virsysinfopriv.h b/src/util/virsysinfopriv.h index b7beb44807..cdcb021309 100644 --- a/src/util/virsysinfopriv.h +++ b/src/util/virsysinfopriv.h @@ -21,8 +21,7 @@ # error "virsysinfopriv.h may only be included by virsysinfo.c or test sui= tes" #endif /* LIBVIRT_VIRSYSINFOPRIV_H_ALLOW */ =20 -#ifndef LIBVIRT_VIRSYSINFOPRIV_H -# define LIBVIRT_VIRSYSINFOPRIV_H +#pragma once =20 void virSysinfoSetup(const char *dmidecode, @@ -40,5 +39,3 @@ virSysinfoReadS390(void); =20 virSysinfoDefPtr virSysinfoReadDMI(void); - -#endif /* LIBVIRT_VIRSYSINFOPRIV_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list