util: sysinfo: use #pragma once in headers

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>
This commit is contained in:
Jonathon Jongsma 2019-06-18 11:13:04 -05:00 committed by Ján Tomko
parent 52e596cae7
commit 55c0ec283b
2 changed files with 6 additions and 12 deletions

View File

@ -19,13 +19,12 @@
* <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 */

View 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 */