util: storage: 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:47 -05:00 committed by Ján Tomko
parent 54416b6a59
commit 0b8b8da7d9
3 changed files with 24 additions and 33 deletions

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSTORAGEENCRYPTION_H
# define LIBVIRT_VIRSTORAGEENCRYPTION_H
#pragma once
#include "internal.h"
#include "virbuffer.h"
@ -93,5 +92,3 @@ enum {
};
int virStorageGenerateQcowPassphrase(unsigned char *dest);
#endif /* LIBVIRT_VIRSTORAGEENCRYPTION_H */

View File

@ -19,8 +19,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSTORAGEFILE_H
# define LIBVIRT_VIRSTORAGEFILE_H
#pragma once
#include <sys/stat.h>
@ -548,5 +547,3 @@ void virStorageFileReportBrokenChain(int errcode,
virStorageSourcePtr parent);
VIR_DEFINE_AUTOPTR_FUNC(virStorageAuthDef, virStorageAuthDefFree);
#endif /* LIBVIRT_VIRSTORAGEFILE_H */

View File

@ -18,8 +18,7 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_VIRSTORAGEFILEBACKEND_H
# define LIBVIRT_VIRSTORAGEFILEBACKEND_H
#pragma once
#include <sys/stat.h>
@ -99,5 +98,3 @@ struct _virStorageFileBackend {
};
int virStorageFileBackendRegister(virStorageFileBackendPtr backend);
#endif /* LIBVIRT_VIRSTORAGEFILEBACKEND_H */