qga: Add multiple include guard to guest-agent-core.h
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Nov 2018 12:52:23 +0000 (12:52 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 9 Nov 2018 13:55:13 +0000 (07:55 -0600)
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>
qga/guest-agent-core.h

index 6f4d214cb9ffccd9d3d561144b42d1b1dece748c..60eae16f27aaa3108254e3ac2613e6802ba7fed9 100644 (file)
@@ -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 */