From b47fccfe705c3d7f236e3d4dc03b5d960db015f1 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Tue, 18 Jun 2019 11:12:33 -0500 Subject: [PATCH] src/network: use #pragma once in headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathon Jongsma Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- src/network/bridge_driver.h | 15 ++++++--------- src/network/bridge_driver_platform.h | 15 ++++++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/network/bridge_driver.h b/src/network/bridge_driver.h index 44c79f555e..7357c1754c 100644 --- a/src/network/bridge_driver.h +++ b/src/network/bridge_driver.h @@ -19,14 +19,13 @@ * . */ -#ifndef LIBVIRT_BRIDGE_DRIVER_H -# define LIBVIRT_BRIDGE_DRIVER_H +#pragma once -# include "internal.h" -# include "domain_conf.h" -# include "vircommand.h" -# include "virdnsmasq.h" -# include "virnetworkobj.h" +#include "internal.h" +#include "domain_conf.h" +#include "vircommand.h" +#include "virdnsmasq.h" +#include "virnetworkobj.h" int networkRegister(void); @@ -37,5 +36,3 @@ networkDnsmasqConfContents(virNetworkObjPtr obj, char **configstr, dnsmasqContext *dctx, dnsmasqCapsPtr caps); - -#endif /* LIBVIRT_BRIDGE_DRIVER_H */ diff --git a/src/network/bridge_driver_platform.h b/src/network/bridge_driver_platform.h index 5f534fc132..1efa0d2af4 100644 --- a/src/network/bridge_driver_platform.h +++ b/src/network/bridge_driver_platform.h @@ -19,14 +19,13 @@ * . */ -#ifndef LIBVIRT_BRIDGE_DRIVER_PLATFORM_H -# define LIBVIRT_BRIDGE_DRIVER_PLATFORM_H +#pragma once -# include "internal.h" -# include "virthread.h" -# include "virdnsmasq.h" -# include "virnetworkobj.h" -# include "object_event.h" +#include "internal.h" +#include "virthread.h" +#include "virdnsmasq.h" +#include "virnetworkobj.h" +#include "object_event.h" /* Main driver state */ struct _virNetworkDriverState { @@ -66,5 +65,3 @@ int networkCheckRouteCollision(virNetworkDefPtr def); int networkAddFirewallRules(virNetworkDefPtr def); void networkRemoveFirewallRules(virNetworkDefPtr def); - -#endif /* LIBVIRT_BRIDGE_DRIVER_PLATFORM_H */ -- GitLab