[virt-tools-list] [PATCH] virt-viewer: Fix a typo

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jan 16 13:10:42 UTC 2012


Hi Guannan,

On Sun, Jan 15, 2012 at 8:06 AM, Guannan Ren <gren at redhat.com> wrote:
>        *src/virt-viewer-session-vnc.c
> ---
>  src/virt-viewer-session-vnc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-vnc.c
> index ad3002a..cdf1be8 100644
> --- a/src/virt-viewer-session-vnc.c
> +++ b/src/virt-viewer-session-vnc.c
> @@ -71,7 +71,7 @@ virt_viewer_session_vnc_class_init(VirtViewerSessionVncClass *klass)
>        dclass->open_host = virt_viewer_session_vnc_open_host;
>        dclass->channel_open_fd = virt_viewer_session_vnc_channel_open_fd;
>
> -       g_type_class_add_private(oclass, sizeof(VirtViewerSessionVncPrivate));
> +       g_type_class_add_private(klass, sizeof(VirtViewerSessionVncPrivate));

Apparently, it doesn't matter, but I think your version is more correct.

Could you make a patch for all the calls to g_type_class_add_private() ?

thanks

-- 
Marc-André Lureau




More information about the virt-tools-list mailing list