diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-01-29 17:49:58 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:31:48 -0600 |
commit | b858fa2142acc49709ccb15a6d1d3141f4bf4512 (patch) | |
tree | 1bbdde4730b1dad9011e2f3ab425c635321bd853 | |
parent | 8aa643a08f71f7528b994d7fc6707d1e9fd7644a (diff) | |
download | hqemu-b858fa2142acc49709ccb15a6d1d3141f4bf4512.zip hqemu-b858fa2142acc49709ccb15a6d1d3141f4bf4512.tar.gz |
qga: Clean up includes
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1454089805-5470-9-git-send-email-peter.maydell@linaro.org
-rw-r--r-- | qga/channel-posix.c | 7 | ||||
-rw-r--r-- | qga/channel-win32.c | 5 | ||||
-rw-r--r-- | qga/commands-posix.c | 10 | ||||
-rw-r--r-- | qga/commands-win32.c | 3 | ||||
-rw-r--r-- | qga/commands.c | 1 | ||||
-rw-r--r-- | qga/guest-agent-command-state.c | 1 | ||||
-rw-r--r-- | qga/main.c | 5 | ||||
-rw-r--r-- | qga/service-win32.c | 3 | ||||
-rw-r--r-- | qga/vss-win32.c | 2 |
9 files changed, 9 insertions, 28 deletions
diff --git a/qga/channel-posix.c b/qga/channel-posix.c index 50d9dd3..7ad3c00 100644 --- a/qga/channel-posix.c +++ b/qga/channel-posix.c @@ -1,11 +1,6 @@ +#include "qemu/osdep.h" #include <glib.h> #include <termios.h> -#include <errno.h> -#include <unistd.h> -#include <fcntl.h> -#include <stdlib.h> -#include <string.h> -#include "qemu/osdep.h" #include "qemu/sockets.h" #include "qga/channel.h" diff --git a/qga/channel-win32.c b/qga/channel-win32.c index 0452b9f..bb59661 100644 --- a/qga/channel-win32.c +++ b/qga/channel-win32.c @@ -1,9 +1,6 @@ -#include <stdlib.h> -#include <stdio.h> -#include <stdbool.h> +#include "qemu/osdep.h" #include <glib.h> #include <windows.h> -#include <errno.h> #include <io.h> #include "qga/guest-agent-core.h" #include "qga/channel.h" diff --git a/qga/commands-posix.c b/qga/commands-posix.c index cd88e05..9589b2d 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -11,19 +11,11 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> -#include <sys/types.h> #include <sys/ioctl.h> #include <sys/wait.h> -#include <sys/sysmacros.h> -#include <unistd.h> -#include <errno.h> -#include <fcntl.h> #include <dirent.h> -#include <stdio.h> -#include <string.h> -#include <sys/stat.h> -#include <inttypes.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" #include "qapi/qmp/qerror.h" diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 61ffbdf..cf0757c 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -11,11 +11,10 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> #include <wtypes.h> #include <powrprof.h> -#include <stdio.h> -#include <string.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iptypes.h> diff --git a/qga/commands.c b/qga/commands.c index 58568d8..5b56786 100644 --- a/qga/commands.c +++ b/qga/commands.c @@ -10,6 +10,7 @@ * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> #include "qga/guest-agent-core.h" #include "qga-qmp-commands.h" diff --git a/qga/guest-agent-command-state.c b/qga/guest-agent-command-state.c index 128c549..20b9b22 100644 --- a/qga/guest-agent-command-state.c +++ b/qga/guest-agent-command-state.c @@ -9,6 +9,7 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#include "qemu/osdep.h" #include <glib.h> #include "qga/guest-agent-core.h" @@ -10,16 +10,13 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include <stdlib.h> -#include <stdio.h> -#include <stdbool.h> +#include "qemu/osdep.h" #include <glib.h> #include <getopt.h> #include <glib/gstdio.h> #ifndef _WIN32 #include <syslog.h> #include <sys/wait.h> -#include <sys/stat.h> #endif #include "qapi/qmp/json-streamer.h" #include "qapi/qmp/json-parser.h" diff --git a/qga/service-win32.c b/qga/service-win32.c index aef41f0..7243758 100644 --- a/qga/service-win32.c +++ b/qga/service-win32.c @@ -10,8 +10,7 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ -#include <stdlib.h> -#include <stdio.h> +#include "qemu/osdep.h" #include <glib.h> #include <windows.h> #include "qga/service-win32.h" diff --git a/qga/vss-win32.c b/qga/vss-win32.c index 2142b49..5182e3b 100644 --- a/qga/vss-win32.c +++ b/qga/vss-win32.c @@ -10,7 +10,7 @@ * See the COPYING file in the top-level directory. */ -#include <stdio.h> +#include "qemu/osdep.h" #include <windows.h> #include "qga/guest-agent-core.h" #include "qga/vss-win32.h" |