[PATCH 03/46] src/network: use #pragma once in headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
---
 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 @@
  * <http://www.gnu.org/licenses/>.
  */
 
-#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 @@
  * <http://www.gnu.org/licenses/>.
  */
 
-#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 */
-- 
2.20.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux