]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
node_device_udev.h: Use #pragma once
authorCole Robinson <crobinso@redhat.com>
Wed, 3 Apr 2019 17:29:22 +0000 (13:29 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 4 Apr 2019 22:42:09 +0000 (18:42 -0400)
Acked-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/node_device/node_device_udev.h

index 8c1d8fec1dd668d8939575b9c5be392faf33d982..996677dfe0847ef17021a03f758ee5ca7952f083 100644 (file)
  * <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"