Received: from eggs.gnu.org ([208.118.235.92]:57408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQK6X-0005t0-JW for qemu-devel@nongnu.org; Mon, 22 Oct 2012 11:39:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQK6W-0005uO-CS for qemu-devel@nongnu.org; Mon, 22 Oct 2012 11:39:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQK6W-0005tk-3x for qemu-devel@nongnu.org; Mon, 22 Oct 2012 11:39:48 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9MFdk5Z010313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 22 Oct 2012 11:39:46 -0400 From: Markus Armbruster References: <1350653528-5834-1-git-send-email-pbonzini@redhat.com> <1350653528-5834-16-git-send-email-pbonzini@redhat.com> Date: Mon, 22 Oct 2012 17:39:44 +0200 In-Reply-To: <1350653528-5834-16-git-send-email-pbonzini@redhat.com> (Paolo Bonzini's message of "Fri, 19 Oct 2012 15:31:54 +0200") Message-ID: <874nlmcy7z.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 15/29] vnc: reorganize code for reverse mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini writes: > Avoid the dance between csock and vs->lsock. > > Signed-off-by: Paolo Bonzini > --- > console.h | 2 +- > qmp.c | 6 ++---- > ui/vnc.c | 20 +++++++++----------- > 3 file modificati, 12 inserzioni(+), 16 rimozioni(-) > > diff --git a/console.h b/console.h > index f990684..6099d8d 100644 > --- a/console.h > +++ b/console.h > @@ -378,7 +378,7 @@ void cocoa_display_init(DisplayState *ds, int full_sc= reen); > /* vnc.c */ > void vnc_display_init(DisplayState *ds); > void vnc_display_close(DisplayState *ds); > -int vnc_display_open(DisplayState *ds, const char *display); > +void vnc_display_open(DisplayState *ds, const char *display, Error **err= p); > void vnc_display_add_client(DisplayState *ds, int csock, int skipauth); > int vnc_display_disable_login(DisplayState *ds); > char *vnc_display_local_addr(DisplayState *ds); > diff --git a/qmp.c b/qmp.c > index 36c54c5..31bc3bf 100644 > --- a/qmp.c > +++ b/qmp.c > @@ -349,11 +349,9 @@ void qmp_change_vnc_password(const char *password, E= rror **errp) > } > } >=20=20 > -static void qmp_change_vnc_listen(const char *target, Error **err) > +static void qmp_change_vnc_listen(const char *target, Error **errp) > { > - if (vnc_display_open(NULL, target) < 0) { > - error_set(err, QERR_VNC_SERVER_FAILED, target); > - } > + vnc_display_open(NULL, target, errp); > } >=20=20 These two hunks looks out of place, and don't compile: ui/vnc.c:2851:5: error: conflicting types for =E2=80=98vnc_display_open= =E2=80=99 vl.c:3710:9: error: too few arguments to function =E2=80=98vnc_display_= open=E2=80=99 Did they creep into the wrong patch? [...]