if (inetd) { sprintf(vnc_desktop_name, "inetd-no-further-clients"); }
void set_vnc_desktop_name(void) {	int sz = 256;	sprintf(vnc_desktop_name, "unknown");	if (screen->port) {		char *host = this_host();		int lport = screen->port;		if (host != NULL) {			/* note that vncviewer special cases 5900-5999 */			if (inetd) {				;	/* should not occur (port) */			} else if (quiet) {				if (lport >= 5900) {					snprintf(vnc_desktop_name, sz, "%s:%d",					    host, lport - 5900);					fprintf(stderr, "The VNC desktop is "					    "%s\n", vnc_desktop_name);				} else {					snprintf(vnc_desktop_name, sz, "%s:%d",					    host, lport);					fprintf(stderr, "The VNC desktop is "					    "%s\n", vnc_desktop_name);				}			} else if (lport >= 5900) {				snprintf(vnc_desktop_name, sz, "%s:%d",				    host, lport - 5900);				rfbLog("\n");				rfbLog("The VNC desktop is %s\n",				    vnc_desktop_name);				if (lport >= 6000) {					rfbLog("possible aliases:  %s:%d, "					    "%s::%d\n", host, lport,					    host, lport);				}			} else {				snprintf(vnc_desktop_name, sz, "%s:%d",				    host, lport);				rfbLog("\n");				rfbLog("The VNC desktop is %s\n",				    vnc_desktop_name);				rfbLog("possible alias:    %s::%d\n",				    host, lport);			}		}		fflush(stderr);			if (inetd) {			;	/* should not occur (port) */		} else {			fprintf(stdout, "PORT=%d\n", screen->port);		}		fflush(stdout);		}}