]> xenbits.xensource.com Git - xenclient/ioemu.git/commitdiff
Fix dom0_driver
authorJean Guyader <jean.guyader@eu.citrix.com>
Mon, 13 Oct 2008 13:01:54 +0000 (14:01 +0100)
committerVincent Hanquez <vincent@snarc.org>
Fri, 31 Oct 2008 12:10:56 +0000 (12:10 +0000)
console.h
dom0_driver.c

index c3b113042830c6fcc08b01a1e734b8e09cfa5010..b63f9421a5428dbde8d2042fc398460ee7a665c8 100644 (file)
--- 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
index e97b467cadd96ba61758c1d0a7159d462912a71f..d4c0acecbe7076d7ca0a84cf6daf1e05877ce476 100644 (file)
@@ -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);
 }