diff mbox series

[3/6] node_device_driver.h: Use #pragma once

Message ID 426184e756310f6d9bdae983a945080ae1713c03.1554328223.git.crobinso@redhat.com
State Accepted
Commit 23bda3b7827c9497b930081790fc7ac65600175f
Headers show
Series Some '#pragma once' conversions | expand

Commit Message

Cole Robinson April 3, 2019, 9:52 p.m. UTC
Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
 src/node_device/node_device_driver.h | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/src/node_device/node_device_driver.h b/src/node_device/node_device_driver.h
index 5876671c03..eae5e2cb17 100644
--- a/src/node_device/node_device_driver.h
+++ b/src/node_device/node_device_driver.h
@@ -19,24 +19,23 @@ 
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_NODE_DEVICE_DRIVER_H
-# define LIBVIRT_NODE_DEVICE_DRIVER_H
+#pragma once
 
-# include "internal.h"
-# include "driver.h"
-# include "virnodedeviceobj.h"
+#include "internal.h"
+#include "driver.h"
+#include "virnodedeviceobj.h"
 
-# define LINUX_NEW_DEVICE_WAIT_TIME 60
+#define LINUX_NEW_DEVICE_WAIT_TIME 60
 
-# ifdef WITH_HAL
+#ifdef WITH_HAL
 int
 halNodeRegister(void);
-# endif
+#endif
 
-# ifdef WITH_UDEV
+#ifdef WITH_UDEV
 int
 udevNodeRegister(void);
-# endif
+#endif
 
 void
 nodeDeviceLock(void);
@@ -117,5 +116,3 @@  nodeConnectNodeDeviceEventRegisterAny(virConnectPtr conn,
 int
 nodeConnectNodeDeviceEventDeregisterAny(virConnectPtr conn,
                                         int callbackID);
-
-#endif /* LIBVIRT_NODE_DEVICE_DRIVER_H */