From nobody Fri Dec 19 19:15:58 2025 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=1559938989; cv=none; d=zoho.com; s=zohoarc; b=Qt9t++PkRRKZ+8eA0FbElPqW/zijpKYXaqJUWV7HqxSE2Wv5mtUlAbNTx08ztye0AKfximFNzzNlGlEm4yx+2QfxG2UZqNXFwR3cWjIMjGQsOXbPUo38ZizUtgXtKXgUBST9K4k6+yBe8XnHexy+l4CI95hgmPwEcloaSmMqz+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559938989; 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=6DNBlrUtf7YZg6+I4cIzYz8Yt2aJsBaNBr9d04LK9xM=; b=QIXVdiP3ACaSpUHSE6GeOJEpSbKsJ9y3pMAcW2YFkZ1k64Av1UPUY5hwC+YwvbkVi7Ox5zXjCUw3v3KJ9o11oEQ6xJ1fQpmFJqELqrqTdDBpqxOhRQJ0gFJqERkq3zF6DsAtgvrot2YEEsroblAtzzMHXvOu48GGhGqg4er2GzA= 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 1559938989303615.9337972961181; Fri, 7 Jun 2019 13:23:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9E98C1EB1F8; Fri, 7 Jun 2019 20:23:02 +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 8D04919C79; Fri, 7 Jun 2019 20:23: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 4FADF206DF; Fri, 7 Jun 2019 20:23:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x57KKiEW025798 for ; Fri, 7 Jun 2019 16:20:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0391B5C205; Fri, 7 Jun 2019 20:20:44 +0000 (UTC) Received: from aegolius.redhat.com (ovpn-117-185.phx2.redhat.com [10.3.117.185]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C60BE5C206 for ; Fri, 7 Jun 2019 20:20:43 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Fri, 7 Jun 2019 15:20:30 -0500 Message-Id: <20190607202030.29625-20-jjongsma@redhat.com> In-Reply-To: <20190607202030.29625-1-jjongsma@redhat.com> References: <20190607202030.29625-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 19/19] src/logging: 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.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 07 Jun 2019 20:23:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jonathon Jongsma --- src/logging/log_daemon.h | 9 +++------ src/logging/log_daemon_config.h | 7 ++----- src/logging/log_daemon_dispatch.h | 7 ++----- src/logging/log_handler.h | 9 +++------ src/logging/log_manager.h | 9 +++------ 5 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/logging/log_daemon.h b/src/logging/log_daemon.h index 27f6af72cf..fa661e1793 100644 --- a/src/logging/log_daemon.h +++ b/src/logging/log_daemon.h @@ -18,11 +18,10 @@ * . */ =20 -#ifndef LIBVIRT_LOG_DAEMON_H -# define LIBVIRT_LOG_DAEMON_H +#pragma once =20 -# include "virthread.h" -# include "log_handler.h" +#include "virthread.h" +#include "log_handler.h" =20 typedef struct _virLogDaemon virLogDaemon; typedef virLogDaemon *virLogDaemonPtr; @@ -39,5 +38,3 @@ struct _virLogDaemonClient { extern virLogDaemonPtr logDaemon; =20 virLogHandlerPtr virLogDaemonGetHandler(virLogDaemonPtr dmn); - -#endif /* LIBVIRT_LOG_DAEMON_H */ diff --git a/src/logging/log_daemon_config.h b/src/logging/log_daemon_confi= g.h index 2508e4c918..957c20c893 100644 --- a/src/logging/log_daemon_config.h +++ b/src/logging/log_daemon_config.h @@ -19,10 +19,9 @@ * . */ =20 -#ifndef LIBVIRT_LOG_DAEMON_CONFIG_H -# define LIBVIRT_LOG_DAEMON_CONFIG_H +#pragma once =20 -# include "internal.h" +#include "internal.h" =20 typedef struct _virLogDaemonConfig virLogDaemonConfig; typedef virLogDaemonConfig *virLogDaemonConfigPtr; @@ -45,5 +44,3 @@ void virLogDaemonConfigFree(virLogDaemonConfigPtr data); int virLogDaemonConfigLoadFile(virLogDaemonConfigPtr data, const char *filename, bool allow_missing); - -#endif /* LIBVIRT_LOG_DAEMON_CONFIG_H */ diff --git a/src/logging/log_daemon_dispatch.h b/src/logging/log_daemon_dis= patch.h index 8471d6798f..7738f62c70 100644 --- a/src/logging/log_daemon_dispatch.h +++ b/src/logging/log_daemon_dispatch.h @@ -18,12 +18,9 @@ * . */ =20 -#ifndef LIBVIRT_LOG_DAEMON_DISPATCH_H -# define LIBVIRT_LOG_DAEMON_DISPATCH_H +#pragma once =20 -# include "rpc/virnetserverprogram.h" +#include "rpc/virnetserverprogram.h" =20 extern virNetServerProgramProc virLogManagerProtocolProcs[]; extern size_t virLogManagerProtocolNProcs; - -#endif /* LIBVIRT_LOG_DAEMON_DISPATCH_H */ diff --git a/src/logging/log_handler.h b/src/logging/log_handler.h index db202f7091..8c8562e0c5 100644 --- a/src/logging/log_handler.h +++ b/src/logging/log_handler.h @@ -18,11 +18,10 @@ * . */ =20 -#ifndef LIBVIRT_LOG_HANDLER_H -# define LIBVIRT_LOG_HANDLER_H +#pragma once =20 -# include "internal.h" -# include "virjson.h" +#include "internal.h" +#include "virjson.h" =20 typedef struct _virLogHandler virLogHandler; typedef virLogHandler *virLogHandlerPtr; @@ -76,5 +75,3 @@ int virLogHandlerDomainAppendLogFile(virLogHandlerPtr han= dler, unsigned int flags); =20 virJSONValuePtr virLogHandlerPreExecRestart(virLogHandlerPtr handler); - -#endif /* LIBVIRT_LOG_HANDLER_H */ diff --git a/src/logging/log_manager.h b/src/logging/log_manager.h index d796971ef8..cca1573841 100644 --- a/src/logging/log_manager.h +++ b/src/logging/log_manager.h @@ -18,12 +18,11 @@ * . */ =20 -#ifndef LIBVIRT_LOG_MANAGER_H -# define LIBVIRT_LOG_MANAGER_H +#pragma once =20 -# include "internal.h" +#include "internal.h" =20 -# include "logging/log_protocol.h" +#include "logging/log_protocol.h" =20 typedef struct _virLogManager virLogManager; typedef virLogManager *virLogManagerPtr; @@ -61,5 +60,3 @@ int virLogManagerDomainAppendMessage(virLogManagerPtr mgr, const char *path, const char *message, unsigned int flags); - -#endif /* LIBVIRT_LOG_MANAGER_H */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list