This patch fails to compile. Please correct and resend.

Sharad Mishra
Open Virtualization
Linux Technology Center
IBM

libvirt-cim-bounces@redhat.com wrote on 03/21/2011 12:07:21 PM:

> Chip Vincent <cvincent@linux.vnet.ibm.com>

> Sent by: libvirt-cim-bounces@redhat.com
>

> 03/21/11 12:07 PM
>
> Please respond to
> List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>

>
> To

>
> libvirt-cim@redhat.com

>
> cc

>
> Subject

>
> [Libvirt-cim] [PATCH] Add VNC autoport support

>
> # HG changeset patch
> # User Chip Vincent <cvincent@us.ibm.com>
> # Date 1300734383 14400
> # Node ID 505a9e36438d02c8b580a0ac103e6b8ab0b5cda4
> # Parent  1ac08805bf69fd5e09db234f61860f986f29e0b9
> Add VNC autoport support
>
> Signed-off-by: Chip Vincent <cvincent@us.ibm.com>
>
> diff --git a/libxkutil/xmlgen.c b/libxkutil/xmlgen.c
> --- a/libxkutil/xmlgen.c
> +++ b/libxkutil/xmlgen.c
> @@ -406,6 +406,12 @@
>                          goto out;
>  
>                  xmlNewProp(tmp, BAD_CAST "port", BAD_CAST dev->port);
> +
> +                if(dev->port == "-1")
> +                        xmlNewProp(tmp, BAD_CAST "autoport" BAD_CAST "yes")
> +                else
> +                        xmlNewProp(tmp, BAD_CAST "autoport" BAD_CAST "no")
> +
>                  xmlNewProp(tmp, BAD_CAST "listen", BAD_CAST dev->host);
>                  xmlNewProp(tmp, BAD_CAST "keymap", BAD_CAST dev->keymap);
>  
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim@redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim