diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-02-02 14:38:20 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-02-08 07:16:23 +0100 |
commit | c12a9848148bb3babf9a29bd965d82f79ecfba27 (patch) | |
tree | 61fbeb598a36bc1e5bad3df84160080db9a0785f /qga | |
parent | e09458005068c38f235e53cc4b079c200470b88b (diff) | |
download | qemu-c12a9848148bb3babf9a29bd965d82f79ecfba27.zip qemu-c12a9848148bb3babf9a29bd965d82f79ecfba27.tar.gz qemu-c12a9848148bb3babf9a29bd965d82f79ecfba27.tar.bz2 |
qga: Clean up includes
This commit was created with scripts/clean-includes.
All .c should include qemu/osdep.h first. The script performs three
related cleanups:
* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c already includes
it. Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
Drop these, too.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20230202133830.2152150-11-armbru@redhat.com>
Diffstat (limited to 'qga')
-rw-r--r-- | qga/commands-posix.c | 1 | ||||
-rw-r--r-- | qga/cutils.c | 3 | ||||
-rw-r--r-- | qga/cutils.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/qga/commands-posix.c b/qga/commands-posix.c index ebd33a6..079689d 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -51,7 +51,6 @@ #else #include <net/ethernet.h> #endif -#include <sys/types.h> #ifdef CONFIG_SOLARIS #include <sys/sockio.h> #endif diff --git a/qga/cutils.c b/qga/cutils.c index b8e142e..b21bcf3 100644 --- a/qga/cutils.c +++ b/qga/cutils.c @@ -2,8 +2,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. */ -#include "cutils.h" +#include "qemu/osdep.h" +#include "cutils.h" #include "qapi/error.h" /** diff --git a/qga/cutils.h b/qga/cutils.h index f0f30a7..c1f2f4b 100644 --- a/qga/cutils.h +++ b/qga/cutils.h @@ -1,8 +1,6 @@ #ifndef CUTILS_H_ #define CUTILS_H_ -#include "qemu/osdep.h" - int qga_open_cloexec(const char *name, int flags, mode_t mode); #endif /* CUTILS_H_ */ |