From nobody Mon Feb 9 18:18:14 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=1560874514; cv=none; d=zoho.com; s=zohoarc; b=jlmmp4b/0hjUl2C4ryF9qs3+OqUUyUs2oJM4DeYV7fGD4MVzigDotEu+fyzdswKQfcVr30n5qAtJFP/684923A+J9L6Dh2PSUvjso3itcHPhhn4CurJbJpALYAT0YweiIr9o9FLlTGlRLq5+3W3eZHu6JmAueraXYccx42N7PRI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560874514; 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=K5jFziKumuF76au/Kj8ZGAH9FqFscgV82VCrQV61rgw=; b=E4111RHGqsWl8RaKN31RKZCxw5SK3tmPVSjmCxoL89GenjYwzx7al+wAyw50cFdpzGDhLbUvS8qXS0mcCTOHMcfwRiTVmqHRR5hORSL7ByQIaXEUVzuxlDtolOU2l42zpOemGICpfqf4puseErP+efAeRSbdm1JBwX5Z5OGlW9U= 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 1560874514319752.32245752502; Tue, 18 Jun 2019 09:15:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 52E783E2B0; Tue, 18 Jun 2019 16:15:07 +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 0F2B21001E84; Tue, 18 Jun 2019 16:15:06 +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 728F61806B1D; Tue, 18 Jun 2019 16:15:02 +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 x5IGDR7W024174 for ; Tue, 18 Jun 2019 12:13:27 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7EC0784EF; Tue, 18 Jun 2019 16:13:27 +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 4CD7360FAB for ; Tue, 18 Jun 2019 16:13:27 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:12:40 -0500 Message-Id: <20190618161316.1722-11-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 10/46] src/secret: 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 18 Jun 2019 16:15:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/secret/secret_driver.h | 5 +---- src/secret/secret_util.h | 8 +++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/secret/secret_driver.h b/src/secret/secret_driver.h index b7e46ee045..3dcf420792 100644 --- a/src/secret/secret_driver.h +++ b/src/secret/secret_driver.h @@ -18,9 +18,6 @@ * . */ =20 -#ifndef LIBVIRT_SECRET_DRIVER_H -# define LIBVIRT_SECRET_DRIVER_H +#pragma once =20 int secretRegister(void); - -#endif /* LIBVIRT_SECRET_DRIVER_H */ diff --git a/src/secret/secret_util.h b/src/secret/secret_util.h index 7219707390..4fe8f98aa5 100644 --- a/src/secret/secret_util.h +++ b/src/secret/secret_util.h @@ -19,11 +19,10 @@ * */ =20 -#ifndef LIBVIRT_SECRET_UTIL_H -# define LIBVIRT_SECRET_UTIL_H +#pragma once =20 -# include "internal.h" -# include "virsecret.h" +#include "internal.h" +#include "virsecret.h" =20 int virSecretGetSecretString(virConnectPtr conn, virSecretLookupTypeDefPtr seclookupdef, @@ -32,4 +31,3 @@ int virSecretGetSecretString(virConnectPtr conn, size_t *ret_secret_size) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4) ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK; -#endif /* LIBVIRT_SECRET_UTIL_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list