slirp: Clean up osdep.h related header inclusions
authorThomas Huth <thuth@redhat.com>
Fri, 13 May 2016 07:04:32 +0000 (09:04 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 16 May 2016 19:01:16 +0000 (21:01 +0200)
qemu/osdep.h is included in some headers twice - one time
should be sufficient.
Also remove the inclusion of time.h since that is already
done by osdep.h, too (this makes scripts/clean-includes
happy again).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/ip6_icmp.c
slirp/ip_input.c
slirp/udp6.c

index 09571bc..48016a9 100644 (file)
@@ -9,7 +9,6 @@
 #include "qemu/timer.h"
 #include "qemu/error-report.h"
 #include "qemu/log.h"
-#include <time.h>
 
 #define NDP_Interval g_rand_int_range(slirp->grand, \
         NDP_MinRtrAdvInterval, NDP_MaxRtrAdvInterval)
index cdd5483..34fba2b 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "qemu/osdep.h"
 #include <slirp.h>
-#include <qemu/osdep.h>
 #include "ip_icmp.h"
 
 static struct ip *ip_reass(Slirp *slirp, struct ip *ip, struct ipq *fp);
index a23026f..94efb13 100644 (file)
@@ -6,7 +6,6 @@
 #include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "slirp.h"
-#include "qemu/osdep.h"
 #include "udp.h"
 
 void udp6_input(struct mbuf *m)