From: Jonathon Jongsma Date: Tue, 18 Jun 2019 16:12:40 +0000 (-0500) Subject: src/secret: use #pragma once in headers X-Git-Tag: v5.5.0-rc1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9b16e44362e7a48314e42f06023b15fba875981;p=thirdparty%2Flibvirt.git src/secret: use #pragma once in headers Signed-off-by: Jonathon Jongsma Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- diff --git a/src/secret/secret_driver.h b/src/secret/secret_driver.h index b7e46ee045..3dcf420792 100644 --- a/src/secret/secret_driver.h +++ b/src/secret/secret_driver.h @@ -18,9 +18,6 @@ * . */ -#ifndef LIBVIRT_SECRET_DRIVER_H -# define LIBVIRT_SECRET_DRIVER_H +#pragma once int secretRegister(void); - -#endif /* LIBVIRT_SECRET_DRIVER_H */ diff --git a/src/secret/secret_util.h b/src/secret/secret_util.h index 7219707390..4fe8f98aa5 100644 --- a/src/secret/secret_util.h +++ b/src/secret/secret_util.h @@ -19,11 +19,10 @@ * */ -#ifndef LIBVIRT_SECRET_UTIL_H -# define LIBVIRT_SECRET_UTIL_H +#pragma once -# include "internal.h" -# include "virsecret.h" +#include "internal.h" +#include "virsecret.h" int virSecretGetSecretString(virConnectPtr conn, virSecretLookupTypeDefPtr seclookupdef, @@ -32,4 +31,3 @@ int virSecretGetSecretString(virConnectPtr conn, size_t *ret_secret_size) ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4) ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK; -#endif /* LIBVIRT_SECRET_UTIL_H */