[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] qemu: Fix vnc port offset in xenstore



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181157958 -3600
# Node ID 6d45351273da0b49ed328ef8077446c4ceedf3ff
# Parent  677731eb734d8d7afa37a2e31ca2ed85fbebc2a5
qemu: Fix vnc port offset in xenstore

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>
---
 tools/ioemu/xenstore.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 677731eb734d -r 6d45351273da tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c    Wed Jun 06 20:24:06 2007 +0100
+++ b/tools/ioemu/xenstore.c    Wed Jun 06 20:25:58 2007 +0100
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.