From nobody Mon Feb 9 22:18:54 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=1560874564; cv=none; d=zoho.com; s=zohoarc; b=fFFbwXuh8iSneSeNnn2Wbu1w4k0f8YpWBzE8AwTZTBmsvvEvTecGlCxl8YLM5EQBiIaTElNvHQh/gRXW7JUd+640uNKHoAbrkFLNJKPdkZ26IttX9jfx+9mk02EObHydx9vRdrJsFXiccF3fTtJqLPRE9zuRwtIoyIVR/eL5e5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560874564; 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=iDJ6ZxvgTige9F3hRpIGccUwxQ4Kg8r7IRBVcuAQqQg=; b=DoxLgpa1EAlyh7bVoB1g4Pikvs7l0BF4nbnydG3XklYpOyo9NycKE0lSd2jssbsCX9opP4JyvyUbTqPxe+BhZdEWwkOKN0eTktQJ7cUwB0wC+JxtUTaOOqe65Bi74+AGXL9H/hnp2kheORpylJrbSrb2cgz8ytyjIkWLXaESHFc= 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 1560874564835397.6861658937577; Tue, 18 Jun 2019 09:16:04 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2A40BC1EB1FF; Tue, 18 Jun 2019 16:16:03 +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 EA06E7DE32; Tue, 18 Jun 2019 16:16:01 +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 A59A3206D9; Tue, 18 Jun 2019 16:16:01 +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 x5IGDX4O024304 for ; Tue, 18 Jun 2019 12:13:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8E46984EF; Tue, 18 Jun 2019 16:13:33 +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 5CE1060FAB for ; Tue, 18 Jun 2019 16:13:33 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Tue, 18 Jun 2019 11:12:58 -0500 Message-Id: <20190618161316.1722-29-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 28/46] util: command: 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 18 Jun 2019 16:16:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma Reviewed-by: J=C3=A1n Tomko --- src/util/vircommand.h | 11 ++++------- src/util/vircommandpriv.h | 7 ++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/util/vircommand.h b/src/util/vircommand.h index c03da43f25..c9a8d3c41c 100644 --- a/src/util/vircommand.h +++ b/src/util/vircommand.h @@ -19,12 +19,11 @@ * */ =20 -#ifndef LIBVIRT_VIRCOMMAND_H -# define LIBVIRT_VIRCOMMAND_H +#pragma once =20 -# include "internal.h" -# include "virbuffer.h" -# include "virautoclean.h" +#include "internal.h" +#include "virbuffer.h" +#include "virautoclean.h" =20 typedef struct _virCommand virCommand; typedef virCommand *virCommandPtr; @@ -222,5 +221,3 @@ int virCommandRunNul(virCommandPtr cmd, void *data); =20 VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree); - -#endif /* LIBVIRT_VIRCOMMAND_H */ diff --git a/src/util/vircommandpriv.h b/src/util/vircommandpriv.h index e2f4c19596..80f1d1376c 100644 --- a/src/util/vircommandpriv.h +++ b/src/util/vircommandpriv.h @@ -23,10 +23,9 @@ # error "vircommandpriv.h may only be included by vircommand.c or test sui= tes" #endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */ =20 -#ifndef LIBVIRT_VIRCOMMANDPRIV_H -# define LIBVIRT_VIRCOMMANDPRIV_H +#pragma once =20 -# include "vircommand.h" +#include "vircommand.h" =20 typedef void (*virCommandDryRunCallback)(const char *const*args, const char *const*env, @@ -39,5 +38,3 @@ typedef void (*virCommandDryRunCallback)(const char *cons= t*args, void virCommandSetDryRun(virBufferPtr buf, virCommandDryRunCallback cb, void *opaque); - -#endif /* LIBVIRT_VIRCOMMANDPRIV_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list