[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Fix vnc port offset in xenstore
vnc-port-offset.patch: The new version of qemu uses 5900 instead of 0 as the port. There is no need to offset it by 5900 when writing out the console/vnc-port entry. Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx> diff -r a5cca7226e8a tools/ioemu/patches/xenstore-write-vnc-port --- a/tools/ioemu/patches/xenstore-write-vnc-port Tue Jun 05 13:32:38 2007 -0400 +++ b/tools/ioemu/patches/xenstore-write-vnc-port Wed Jun 06 10:19:00 2007 -0400 @@ -23,7 +23,7 @@ Index: ioemu/xenstore.c + if (pasprintf(&buf, "%s/console/vnc-port", path) == -1) + goto out; + -+ if (pasprintf(&portstr, "%d", 5900 + display) == -1) ++ if (pasprintf(&portstr, "%d", display) == -1) + goto out; + + if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0) diff -r a5cca7226e8a tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Tue Jun 05 13:32:38 2007 -0400 +++ b/tools/ioemu/xenstore.c Wed Jun 06 10:17:08 2007 -0400 @@ -367,7 +367,7 @@ void xenstore_write_vncport(int display) if (pasprintf(&buf, "%s/console/vnc-port", path) == -1) goto out; - if (pasprintf(&portstr, "%d", 5900 + display) == -1) + if (pasprintf(&portstr, "%d", display) == -1) goto out; if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |