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

util: command: 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>
上级 c664bbff
......@@ -19,12 +19,11 @@
*
*/
#ifndef LIBVIRT_VIRCOMMAND_H
# define LIBVIRT_VIRCOMMAND_H
#pragma once
# include "internal.h"
# include "virbuffer.h"
# include "virautoclean.h"
#include "internal.h"
#include "virbuffer.h"
#include "virautoclean.h"
typedef struct _virCommand virCommand;
typedef virCommand *virCommandPtr;
......@@ -222,5 +221,3 @@ int virCommandRunNul(virCommandPtr cmd,
void *data);
VIR_DEFINE_AUTOPTR_FUNC(virCommand, virCommandFree);
#endif /* LIBVIRT_VIRCOMMAND_H */
......@@ -23,10 +23,9 @@
# error "vircommandpriv.h may only be included by vircommand.c or test suites"
#endif /* LIBVIRT_VIRCOMMANDPRIV_H_ALLOW */
#ifndef LIBVIRT_VIRCOMMANDPRIV_H
# define LIBVIRT_VIRCOMMANDPRIV_H
#pragma once
# include "vircommand.h"
#include "vircommand.h"
typedef void (*virCommandDryRunCallback)(const char *const*args,
const char *const*env,
......@@ -39,5 +38,3 @@ typedef void (*virCommandDryRunCallback)(const char *const*args,
void virCommandSetDryRun(virBufferPtr buf,
virCommandDryRunCallback cb,
void *opaque);
#endif /* LIBVIRT_VIRCOMMANDPRIV_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册