aboutsummaryrefslogtreecommitdiffstats
path: root/shaper.c
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:43:59 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:43:59 -0800
commitc27f813900a3c114562efbb8df1065e94766fc48 (patch)
treed95919283707dcab61009e27007374a745c9541e /shaper.c
parent0852ad57fa372f9b2854e4df685eaba8d8ef6790 (diff)
downloadexternal_qemu-c27f813900a3c114562efbb8df1065e94766fc48.zip
external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.gz
external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.bz2
auto import from //branches/cupcake/...@130745
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,