Skip to content

Commit c12a984

Browse files
author
Markus Armbruster
committed
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 <[email protected]> Reviewed-by: Konstantin Kostiuk <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Message-Id: <[email protected]>
1 parent e094580 commit c12a984

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

qga/commands-posix.c

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#else
5252
#include <net/ethernet.h>
5353
#endif
54-
#include <sys/types.h>
5554
#ifdef CONFIG_SOLARIS
5655
#include <sys/sockio.h>
5756
#endif

qga/cutils.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* This work is licensed under the terms of the GNU GPL, version 2 or later.
33
* See the COPYING file in the top-level directory.
44
*/
5-
#include "cutils.h"
65

6+
#include "qemu/osdep.h"
7+
#include "cutils.h"
78
#include "qapi/error.h"
89

910
/**

qga/cutils.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef CUTILS_H_
22
#define CUTILS_H_
33

4-
#include "qemu/osdep.h"
5-
64
int qga_open_cloexec(const char *name, int flags, mode_t mode);
75

86
#endif /* CUTILS_H_ */

0 commit comments

Comments
 (0)