mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
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:
parent
9f34408270
commit
5f7b3e0f24
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user