提交 d9b16e44 编写于 作者: J Jonathon Jongsma 提交者: Ján Tomko

src/secret: use #pragma once in headers

Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 9b4041d3
......@@ -18,9 +18,6 @@
* <http://www.gnu.org/licenses/>.
*/
#ifndef LIBVIRT_SECRET_DRIVER_H
# define LIBVIRT_SECRET_DRIVER_H
#pragma once
int secretRegister(void);
#endif /* LIBVIRT_SECRET_DRIVER_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 */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册