Skip to content

Commit

Permalink
slirp: Clean up includes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Feb 4, 2016
1 parent 4459bf3 commit 7df7482
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions slirp/arp_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include "slirp.h"

void arp_table_add(Slirp *slirp, uint32_t ip_addr, uint8_t ethaddr[ETH_ALEN])
Expand Down
1 change: 1 addition & 0 deletions slirp/bootp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include <slirp.h>

#if defined(_WIN32)
Expand Down
1 change: 1 addition & 0 deletions slirp/cksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* in_cksum.c,v 1.2 1994/08/02 07:48:16 davidg Exp
*/

#include "qemu/osdep.h"
#include <slirp.h>

/*
Expand Down
4 changes: 1 addition & 3 deletions slirp/dnssearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
* THE SOFTWARE.
*/

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "qemu/osdep.h"
#include <glib.h>
#include "slirp.h"

Expand Down
1 change: 1 addition & 0 deletions slirp/if.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include "qemu/timer.h"

Expand Down
1 change: 1 addition & 0 deletions slirp/ip_icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* ip_icmp.c,v 1.7 1995/05/30 08:09:42 rgrimes Exp
*/

#include "qemu/osdep.h"
#include "slirp.h"
#include "ip_icmp.h"

Expand Down
1 change: 1 addition & 0 deletions slirp/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include <qemu/osdep.h>
#include "ip_icmp.h"
Expand Down
1 change: 1 addition & 0 deletions slirp/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>

/* Number of packets queued before we start sending
Expand Down
1 change: 1 addition & 0 deletions slirp/mbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* the flags
*/

#include "qemu/osdep.h"
#include <slirp.h>

#define MBUF_THRESH 30
Expand Down
1 change: 1 addition & 0 deletions slirp/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include <libslirp.h>

Expand Down
1 change: 1 addition & 0 deletions slirp/sbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include <qemu/main-loop.h>

Expand Down
1 change: 1 addition & 0 deletions slirp/slirp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/timer.h"
#include "qemu/error-report.h"
Expand Down
1 change: 1 addition & 0 deletions slirp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include <slirp.h>
#include "ip_icmp.h"
Expand Down
1 change: 1 addition & 0 deletions slirp/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include "ip_icmp.h"

Expand Down
1 change: 1 addition & 0 deletions slirp/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>

static const u_char tcp_outflags[TCP_NSTATES] = {
Expand Down
1 change: 1 addition & 0 deletions slirp/tcp_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>

/* patchable/settable parameters for tcp */
Expand Down
1 change: 1 addition & 0 deletions slirp/tcp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* tcp_timer.c,v 1.2 1994/08/02 07:49:10 davidg Exp
*/

#include "qemu/osdep.h"
#include <slirp.h>

static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);
Expand Down
1 change: 1 addition & 0 deletions slirp/tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include "qemu-common.h"

Expand Down
1 change: 1 addition & 0 deletions slirp/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* terms and conditions of the copyright.
*/

#include "qemu/osdep.h"
#include <slirp.h>
#include "ip_icmp.h"

Expand Down

0 comments on commit 7df7482

Please sign in to comment.