aboutsummaryrefslogtreecommitdiffstats
path: root/shaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'shaper.c')
-rw-r--r--shaper.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/shaper.c b/shaper.c
index 2c5492a..a522919 100644
--- a/shaper.c
+++ b/shaper.c
@@ -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,