]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen.git/commitdiff
qga: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2016 17:49:58 +0000 (17:49 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 4 Feb 2016 17:41:30 +0000 (17:41 +0000)
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

qga/channel-posix.c
qga/channel-win32.c
qga/commands-posix.c
qga/commands-win32.c
qga/commands.c
qga/guest-agent-command-state.c
qga/main.c
qga/service-win32.c
qga/vss-win32.c

index 50d9dd374758387d97ae8cddf525352eebdfd52f..7ad3c007653eb63cac34c2b1506653750e2f1fbe 100644 (file)
@@ -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"
 
index 0452b9f75eb0cc859d6c34e35ff983a799eed801..bb596612409eb138c35d3453ccbeba835f96abf8 100644 (file)
@@ -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"
index 5f912754846838f09ab858e212298c269191665f..9589b2d63436544f4d9b8c32246a5aa8d705c9fb 100644 (file)
  * 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 <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"
index 61ffbdf1ee689da3cba590f09cbdde2282006833..cf0757cd0fb490702e4b60db3c2fd2a3d2cbe556 100644 (file)
  * 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>
index 58568d845230f9cf7ec69d1f3e76fa39eb712e32..5b56786ef6f75d9d4d80431a295c36534e771391 100644 (file)
@@ -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"
index 128c549edbb9ee437fadac427969c58957cc1b85..20b9b22224a5f4080b9a74770efbb20b0a34afe5 100644 (file)
@@ -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"
 
index f83a97d245a919e374b68be6677de39d121d6675..0a168e2da8d5b7bdfa90ce8232c98f59173d1f66 100644 (file)
  * 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"
index aef41f04f163450434f62b795d37494d25f2ece1..72437587b0154e5150427de68588e6120a4ce3b0 100644 (file)
@@ -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"
index 2142b4964df726cae1ad23fde83f1270baa2a4b9..5182e3be91ef2687f9db085757a7b748ca3c9ea8 100644 (file)
@@ -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"