1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00

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/>.
*/
#ifndef LIBVIRT_VIRHOSTCPU_H
# define LIBVIRT_VIRHOSTCPU_H
#pragma once
#include "internal.h"
#include "virarch.h"
@ -79,5 +78,3 @@ int virHostCPUGetMSR(unsigned long index,
uint64_t *msr);
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"
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRHOSTCPUPRIV_H
# define LIBVIRT_VIRHOSTCPUPRIV_H
#pragma once
#include "virhostcpu.h"
@ -43,5 +42,3 @@ int virHostCPUGetStatsLinux(FILE *procstat,
virNodeCPUStatsPtr params,
int *nparams);
#endif
#endif /* LIBVIRT_VIRHOSTCPUPRIV_H */

View File

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

View File

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