Skip to content

Commit

Permalink
qga: Clean up includes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster committed Feb 8, 2023
1 parent e094580 commit c12a984
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion qga/commands-posix.c
Expand Up @@ -51,7 +51,6 @@
#else
#include <net/ethernet.h>
#endif
#include <sys/types.h>
#ifdef CONFIG_SOLARIS
#include <sys/sockio.h>
#endif
Expand Down
3 changes: 2 additions & 1 deletion qga/cutils.c
Expand Up @@ -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"

/**
Expand Down
2 changes: 0 additions & 2 deletions 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_ */

0 comments on commit c12a984

Please sign in to comment.