ia64/xen-unstable

changeset 15284:6d45351273da

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@virtualiron.com>
author kfraser@localhost.localdomain
date Wed Jun 06 20:25:58 2007 +0100 (2007-06-06)
parents 677731eb734d
children b090c290d9f8
files tools/ioemu/xenstore.c
line diff
     1.1 --- a/tools/ioemu/xenstore.c	Wed Jun 06 20:24:06 2007 +0100
     1.2 +++ b/tools/ioemu/xenstore.c	Wed Jun 06 20:25:58 2007 +0100
     1.3 @@ -367,7 +367,7 @@ void xenstore_write_vncport(int display)
     1.4      if (pasprintf(&buf, "%s/console/vnc-port", path) == -1)
     1.5          goto out;
     1.6  
     1.7 -    if (pasprintf(&portstr, "%d", 5900 + display) == -1)
     1.8 +    if (pasprintf(&portstr, "%d", display) == -1)
     1.9          goto out;
    1.10  
    1.11      if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0)