From: Paolo Bonzini Date: Thu, 4 Feb 2010 13:31:52 +0000 (+0100) Subject: vnc.c: remove dead code X-Git-Tag: TizenStudio_2.0_p2.3~5798 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6c87b998e31b6d2635f40b726cf9fc647e394f6;p=sdk%2Femulator%2Fqemu.git vnc.c: remove dead code to= is handled in qemu-sockets.c inet_listen. Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- diff --git a/vnc.c b/vnc.c index 92facde..a49cff2 100644 --- a/vnc.c +++ b/vnc.c @@ -2537,7 +2537,6 @@ int vnc_display_open(DisplayState *ds, const char *display) const char *options; int password = 0; int reverse = 0; - int to_port = 0; #ifdef CONFIG_VNC_TLS int tls = 0, x509 = 0; #endif @@ -2563,8 +2562,6 @@ int vnc_display_open(DisplayState *ds, const char *display) password = 1; /* Require password auth */ } else if (strncmp(options, "reverse", 7) == 0) { reverse = 1; - } else if (strncmp(options, "to=", 3) == 0) { - to_port = atoi(options+3) + 5900; #ifdef CONFIG_VNC_SASL } else if (strncmp(options, "sasl", 4) == 0) { sasl = 1; /* Require SASL auth */