From: Jean Guyader Date: Mon, 13 Oct 2008 13:01:54 +0000 (+0100) Subject: Fix dom0_driver X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1423709718fba605b700582566db9cc9f8d831cf;p=xenclient%2Fioemu.git Fix dom0_driver --- diff --git a/console.h b/console.h index c3b11304..b63f9421 100644 --- a/console.h +++ b/console.h @@ -166,4 +166,7 @@ const char *readline_get_history(unsigned int index); void readline_start(const char *prompt, int is_password, ReadLineFunc *readline_func, void *opaque); +/* dom0_driver.c */ +void dom0_driver_init(const char *position); + #endif diff --git a/dom0_driver.c b/dom0_driver.c index e97b467c..d4c0acec 100644 --- a/dom0_driver.c +++ b/dom0_driver.c @@ -167,7 +167,7 @@ static void dom0_get_positions(int *positions) int *domids = NULL; int num; char *tmp; - unsigned int len; + unsigned long len; int pos = 0; for (int i = 0; i < DOM0_OUT; i++) @@ -457,15 +457,10 @@ static void dom0_driver_cleanup(void) } -void dom0_driver_init(DisplayState *ds, const char *position) +void dom0_driver_init(const char *position) { memset(&driver, 0, sizeof (driver)); dom0_driver_event_init(position); - ds->data = NULL; - ds->linesize = 0; - ds->depth = 0; - ds->dpy_update = dom0_update; - ds->dpy_refresh = dom0_refresh; atexit(dom0_driver_cleanup); }