X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fbochs_debug.c;h=339999de341c695b85288e05761df56f83f9d409;hb=0a7690f54cb5bda83780dac26ce433ad24b1d766;hp=c12c1f887e05921748218f377c1299d4ca0ac19e;hpb=72420d58d18ec71d4777d029daaf0c6a1c820b32;p=palacios.git diff --git a/palacios/src/devices/bochs_debug.c b/palacios/src/devices/bochs_debug.c index c12c1f8..339999d 100644 --- a/palacios/src/devices/bochs_debug.c +++ b/palacios/src/devices/bochs_debug.c @@ -113,11 +113,9 @@ static int handle_gen_write(struct guest_info * core, ushort_t port, void * src, -static int debug_free(struct vm_device * dev) { - struct debug_state * state = dev->private_data; +static int debug_free(struct debug_state * state) { V3_Free(state); - return 0; }; @@ -125,7 +123,7 @@ static int debug_free(struct vm_device * dev) { static struct v3_device_ops dev_ops = { - .free = debug_free, + .free = (int (*)(void *))debug_free, };