diff options
Diffstat (limited to 'shaper.c')
-rw-r--r-- | shaper.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -10,7 +10,8 @@ ** GNU General Public License for more details. */ #include "shaper.h" -#include "vl.h" +#include "qemu-common.h" +#include "qemu-timer.h" #include <stdlib.h> #define SHAPER_CLOCK rt_clock @@ -163,8 +164,6 @@ netshaper_create( int do_copy, { NetShaper shaper = qemu_malloc(sizeof(*shaper)); - init_timers(); - shaper->active = 0; shaper->packets = NULL; shaper->num_packets = 0; @@ -462,8 +461,6 @@ netdelay_create( NetShaperSendFunc send_func ) { NetDelay delay = qemu_malloc(sizeof(*delay)); - init_timers(); - delay->sessions = NULL; delay->num_sessions = 0; delay->timer = qemu_new_timer( SHAPER_CLOCK, |