X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Ftimer.c;fp=palacios%2Fsrc%2Fdevices%2Ftimer.c;h=65d1a1b46d23bd24510e2440c7a414e5cb3d3bd8;hb=d8fc6aa4bc2a5d9cec50923e9d2bd30f867dd50a;hp=d941fe5b264ae633073a0db202058b4a6ff1492d;hpb=639fdba00d36b2a60fad3d28703459354cf8744f;p=palacios.git diff --git a/palacios/src/devices/timer.c b/palacios/src/devices/timer.c index d941fe5..65d1a1b 100644 --- a/palacios/src/devices/timer.c +++ b/palacios/src/devices/timer.c @@ -40,7 +40,9 @@ static struct vm_device_ops dev_ops = { struct vm_device * create_timer() { struct timer_state * timer = NULL; - V3_Malloc(struct timer_state *, timer, sizeof(struct timer_state)); + timer = (struct timer_state *)V3_Malloc( sizeof(struct timer_state)); + V3_ASSERT(timer != NULL); + struct vm_device * dev = create_device("Timer", &dev_ops, timer); return dev;