util: error: 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:55 -05:00 committed by Ján Tomko
parent 9f34408270
commit 5f7b3e0f24
2 changed files with 20 additions and 26 deletions

View File

@ -19,8 +19,7 @@
*
*/
#ifndef LIBVIRT_VIRERROR_H
# define LIBVIRT_VIRERROR_H
#pragma once
#include "internal.h"
#include "virautoclean.h"
@ -207,5 +206,3 @@ void virErrorPreserveLast(virErrorPtr *saveerr);
void virErrorRestore(virErrorPtr *savederr);
VIR_DEFINE_AUTOPTR_FUNC(virError, virFreeError);
#endif /* LIBVIRT_VIRERROR_H */

View File

@ -18,11 +18,8 @@
# error "virerrorpriv.h may only be included by virerror.c or its test suite"
#endif /* LIBVIRT_VIRERRORPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRERRORPRIV_H
# define LIBVIRT_VIRERRORPRIV_H
#pragma once
const char *
virErrorMsg(virErrorNumber error,
const char *info);
#endif /* LIBVIRT_VIRERRORPRIV_H */