summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2018-11-08 13:52:23 +0100
committerMichael Roth2018-11-09 14:55:13 +0100
commit61baac2fdb7ad3891fb00bbd3c9e8b8ca87f0f62 (patch)
tree4d20ef5d8c7a7af9b1d4ba644420430d59c0b3b7
parentqga-win: fix leaks of build_guest_disk_info() (diff)
downloadqemu-61baac2fdb7ad3891fb00bbd3c9e8b8ca87f0f62.tar.gz
qemu-61baac2fdb7ad3891fb00bbd3c9e8b8ca87f0f62.tar.xz
qemu-61baac2fdb7ad3891fb00bbd3c9e8b8ca87f0f62.zip
qga: Add multiple include guard to guest-agent-core.h
The guest-agent-core.h header was missing the usual guards against multiple inclusion; add them. (Spotted by lgtm.com's static analyzer.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r--qga/guest-agent-core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/qga/guest-agent-core.h b/qga/guest-agent-core.h
index 6f4d214cb9..60eae16f27 100644
--- a/qga/guest-agent-core.h
+++ b/qga/guest-agent-core.h
@@ -10,6 +10,9 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
+#ifndef GUEST_AGENT_CORE_H
+#define GUEST_AGENT_CORE_H
+
#include "qapi/qmp/dispatch.h"
#include "qemu-common.h"
#include "qga-qapi-types.h"
@@ -46,3 +49,5 @@ int ga_parse_whence(GuestFileWhence *whence, Error **errp);
#ifndef _WIN32
void reopen_fd_to_null(int fd);
#endif
+
+#endif /* GUEST_AGENT_CORE_H */