diff options
author | kraxel <kraxel> | 2006-11-07 14:32:36 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-11-07 14:32:36 +0000 |
commit | 701c9668cabe7a3c2bf0151a4474b981ec010c66 (patch) | |
tree | 996b3a57028b1d707ffb61895388cacadd9509fa /vnc.c | |
parent | e16c481d49db8954e9f90941265b1a75d4ada29e (diff) | |
download | xenwatch-701c9668cabe7a3c2bf0151a4474b981ec010c66.tar.gz |
s/displayno/tcpport/
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -475,7 +475,7 @@ static GdkFilterReturn event_filter(GdkXEvent *gdkxevent, GdkEvent *gtkevent, /* ------------------------------------------------------------------ */ /* public API functions */ -GtkWidget *vnc_open(char *hostname, int displayno, unsigned long flags, +GtkWidget *vnc_open(char *hostname, int tcpport, unsigned long flags, int debug_level) { char display[128]; @@ -500,8 +500,8 @@ GtkWidget *vnc_open(char *hostname, int displayno, unsigned long flags, goto err; /* rfb client */ - snprintf(display, sizeof(display), "%s:%d", hostname, displayno); - fprintf(stderr, "%s: connecting to %s:%d\n", __FUNCTION__, hostname, displayno); + snprintf(display, sizeof(display), "%s:%d", hostname, tcpport - 5900); + fprintf(stderr, "%s: connecting to %s:%d\n", __FUNCTION__, hostname, tcpport - 5900); if (8 == x11_red_bits) vnc->client = rfbGetClient(8,3,4); else @@ -577,7 +577,7 @@ GtkWidget *vnc_open(char *hostname, int displayno, unsigned long flags, #else /* HAVE_VNCCLIENT */ -GtkWidget *vnc_open(char *hostname, int displayno, +GtkWidget *vnc_open(char *hostname, int tcpport, int standalone, int uskbd, int debug) { fprintf(stderr, "compiled without VNC support, sorry\n"); |