X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcurses_cons.c;h=2a96eb58226a10e11334b5bccbfaf6190572968b;hb=d962f2be029772be3f21d9bd206ddf2a9f6a1d20;hp=c4aba1d042290f6ef34bcac3600f19aaa1726fa1;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios-OLD.git diff --git a/palacios/src/devices/curses_cons.c b/palacios/src/devices/curses_cons.c index c4aba1d..2a96eb5 100644 --- a/palacios/src/devices/curses_cons.c +++ b/palacios/src/devices/curses_cons.c @@ -161,9 +161,7 @@ static int scroll(int rows, void * private_data) { } -static int cons_free(struct vm_device * dev) { - struct cons_state * state = (struct cons_state *)dev->private_data; - +static int cons_free(struct cons_state * state) { v3_console_close(state->cons); // remove host event @@ -188,7 +186,7 @@ static struct v3_console_ops cons_ops = { }; static struct v3_device_ops dev_ops = { - .free = cons_free, + .free = (int (*)(void *))cons_free, }; static int cons_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg)