util: host: 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:12:52 -05:00 committed by Ján Tomko
parent 4b72307b2f
commit 2edd1c1d86
4 changed files with 21 additions and 33 deletions

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRHOSTCPU_H #pragma once
# define LIBVIRT_VIRHOSTCPU_H
#include "internal.h" #include "internal.h"
#include "virarch.h" #include "virarch.h"
@ -79,5 +78,3 @@ int virHostCPUGetMSR(unsigned long index,
uint64_t *msr); uint64_t *msr);
virHostCPUTscInfoPtr virHostCPUGetTscInfo(void); virHostCPUTscInfoPtr virHostCPUGetTscInfo(void);
#endif /* LIBVIRT_VIRHOSTCPU_H */

View File

@ -23,8 +23,7 @@
# error "virhostcpupriv.h may only be included by virhostcpu.c or test suites" # error "virhostcpupriv.h may only be included by virhostcpu.c or test suites"
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */ #endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRHOSTCPUPRIV_H #pragma once
# define LIBVIRT_VIRHOSTCPUPRIV_H
#include "virhostcpu.h" #include "virhostcpu.h"
@ -43,5 +42,3 @@ int virHostCPUGetStatsLinux(FILE *procstat,
virNodeCPUStatsPtr params, virNodeCPUStatsPtr params,
int *nparams); int *nparams);
#endif #endif
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRHOSTDEV_H #pragma once
# define LIBVIRT_VIRHOSTDEV_H
#include "internal.h" #include "internal.h"
@ -202,5 +201,3 @@ int virHostdevPCINodeDeviceReAttach(virHostdevManagerPtr mgr,
int virHostdevPCINodeDeviceReset(virHostdevManagerPtr mgr, int virHostdevPCINodeDeviceReset(virHostdevManagerPtr mgr,
virPCIDevicePtr pci) virPCIDevicePtr pci)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
#endif /* LIBVIRT_VIRHOSTDEV_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>. * <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBVIRT_VIRHOSTMEM_H #pragma once
# define LIBVIRT_VIRHOSTMEM_H
#include "internal.h" #include "internal.h"
@ -54,5 +53,3 @@ int virHostMemAllocPages(unsigned int npages,
int startCell, int startCell,
unsigned int cellCount, unsigned int cellCount,
bool add); bool add);
#endif /* LIBVIRT_VIRHOSTMEM_H */