diff mbox series

[4/6] node_device_udev.h: Use #pragma once

Message ID 2ae9bc71554fc73a6120a768c82b1ee4ff3e0f38.1554328223.git.crobinso@redhat.com
State Accepted
Commit c12f687999c95505b1b0416dc5e54f3b15392fee
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_udev.h | 13 +++++--------
 1 file changed, 5 insertions(+), 8 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_udev.h b/src/node_device/node_device_udev.h
index 8c1d8fec1d..996677dfe0 100644
--- a/src/node_device/node_device_udev.h
+++ b/src/node_device/node_device_udev.h
@@ -18,13 +18,10 @@ 
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_NODE_DEVICE_UDEV_H
-# define LIBVIRT_NODE_DEVICE_UDEV_H
+#pragma once
 
-# include <libudev.h>
+#include <libudev.h>
 
-# define SYSFS_DATA_SIZE 4096
-# define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
-# define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id"
-
-#endif /* LIBVIRT_NODE_DEVICE_UDEV_H */
+#define SYSFS_DATA_SIZE 4096
+#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
+#define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id"