Don't define this any longer, we now use the port the daemon is listening

1998-11-11  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/gnuserv.h (MCOOKIE_SCREEN): Don't define this
	any longer, we now use the port the daemon is listening on instead
	of a fixed screen.
This commit is contained in:
Martin Baulig
1998-11-11 20:56:09 +00:00
committed by Martin Baulig
parent d59234afc2
commit a637c8b406
4 changed files with 16 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ permitted (u_long host_addr, int fd)
static int
setup_table (void)
{
char hostname [HOSTNAMSZ];
char hostname [HOSTNAMSZ], screen [BUFSIZ];
long host_addr;
int i, hosts = 0;
@@ -231,10 +231,12 @@ setup_table (void)
#ifdef AUTH_MAGIC_COOKIE
sprintf (screen, "%d", SERVER_PORT);
server_xauth = XauGetAuthByAddr
(FamilyInternet,
sizeof (host_addr), (char *) &host_addr,
strlen (MCOOKIE_SCREEN), MCOOKIE_SCREEN,
strlen (screen), screen,
strlen (MCOOKIE_X_NAME), MCOOKIE_X_NAME);
hosts++;