]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: sysinfo: use #pragma once in headers
authorJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2019 16:13:04 +0000 (11:13 -0500)
committerJán Tomko <jtomko@redhat.com>
Wed, 19 Jun 2019 15:12:33 +0000 (17:12 +0200)
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virsysinfo.h
src/util/virsysinfopriv.h

index c0015834bcc0f51b399feb6833a37580ce98af93..f30809294b000b03a13b6518403f7d960cbcef1f 100644 (file)
  * <http://www.gnu.org/licenses/>.
  */
 
-#ifndef LIBVIRT_VIRSYSINFO_H
-# define LIBVIRT_VIRSYSINFO_H
+#pragma once
 
-# include "internal.h"
-# include "virutil.h"
-# include "virbuffer.h"
-# include "virenum.h"
+#include "internal.h"
+#include "virutil.h"
+#include "virbuffer.h"
+#include "virenum.h"
 
 typedef enum {
     VIR_SYSINFO_SMBIOS,
@@ -152,5 +151,3 @@ bool virSysinfoIsEqual(virSysinfoDefPtr src,
                        virSysinfoDefPtr dst);
 
 VIR_ENUM_DECL(virSysinfo);
-
-#endif /* LIBVIRT_VIRSYSINFO_H */
index b7beb44807dcf8ec22bb5721f5fd1ea296bd07d1..cdcb0213093bae44c275152bf597a03d2e02fcca 100644 (file)
@@ -21,8 +21,7 @@
 # error "virsysinfopriv.h may only be included by virsysinfo.c or test suites"
 #endif /* LIBVIRT_VIRSYSINFOPRIV_H_ALLOW */
 
-#ifndef LIBVIRT_VIRSYSINFOPRIV_H
-# define LIBVIRT_VIRSYSINFOPRIV_H
+#pragma once
 
 void
 virSysinfoSetup(const char *dmidecode,
@@ -40,5 +39,3 @@ virSysinfoReadS390(void);
 
 virSysinfoDefPtr
 virSysinfoReadDMI(void);
-
-#endif /* LIBVIRT_VIRSYSINFOPRIV_H */