summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2004-07-27 06:06:06 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2004-07-27 06:06:06 +0000
commitbeba11cfe89a04a5c315d6b9b48201204af31a18 (patch)
treeff15766e5b2d04c7659405b6cb4b872e50531f31
parent9a00449e017738f0e60c1bf296659a535b1469f2 (diff)
downloadxhost-XORG-6_8_99_7.tar.gz
xhost-XORG-6_8_99_7.tar.bz2
xhost-XORG-6_8_99_7.zip
- remove unused file.
-rw-r--r--xhost.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/xhost.c b/xhost.c
index 1723330..71d78b3 100644
--- a/xhost.c
+++ b/xhost.c
@@ -1,5 +1,5 @@
/* $Xorg: xhost.c,v 1.4 2001/02/09 02:05:46 xorgcvs Exp $ */
-/* $XdotOrg$ */
+/* $XdotOrg: xc/programs/xhost/xhost.c,v 1.2 2004/04/23 19:54:49 eich Exp $ */
/*
Copyright 1985, 1986, 1987, 1998 The Open Group
@@ -37,7 +37,7 @@ X Window System is a trademark of The Open Group.
*/
/* $XFree86: xc/programs/xhost/xhost.c,v 3.26 2003/07/27 14:05:45 herrb Exp $ */
-#if defined(TCPCONN) || defined(STREAMSCONN) || defined(AMTCPCONN)
+#if defined(TCPCONN) || defined(STREAMSCONN)
#define NEEDSOCKETS
#endif
#ifdef UNIXCONN
@@ -316,16 +316,12 @@ change_host(Display *dpy, char *name, Bool add)
krb5_data kbuf;
#endif
#ifdef NEEDSOCKETS
-#ifndef AMTCPCONN
static struct in_addr addr; /* so we can point at it */
#if defined(IPv6) && defined(AF_INET6)
static struct in6_addr addr6; /* so we can point at it */
#else
struct hostent *hp;
#endif
-#else
- static ipaddr_t addr;
-#endif
#endif
char *cp;
#ifdef DNETCONN
@@ -346,7 +342,7 @@ change_host(Display *dpy, char *name, Bool add)
}
lname[namelen] = '\0';
if (!strncmp("inet:", lname, 5)) {
-#if defined(TCPCONN) || defined(STREAMSCONN) || defined(AMTCPCONN)
+#if defined(TCPCONN) || defined(STREAMSCONN)
family = FamilyInternet;
name += 5;
#else
@@ -559,13 +555,8 @@ change_host(Display *dpy, char *name, Bool add)
/*
* First see if inet_addr() can grok the name; if so, then use it.
*/
-#ifndef AMTCPCONN
if (((family == FamilyWild) || (family == FamilyInternet)) &&
((addr.s_addr = inet_addr(name)) != -1)) {
-#else
- if (((family == FamilyWild) || (family == FamilyInternet)) &&
- ((addr = inet_addr(name)) != -1)) {
-#endif
ha.family = FamilyInternet;
ha.length = 4; /* but for Cray would be sizeof(addr.s_addr) */
ha.address = (char *)&addr; /* but for Cray would be &addr.s_addr */
@@ -709,7 +700,7 @@ jmp_buf env;
static char *
get_hostname(XHostAddress *ha)
{
-#if (defined(TCPCONN) || defined(STREAMSCONN) || defined(AMTCPCONN)) && \
+#if (defined(TCPCONN) || defined(STREAMSCONN)) && \
(!defined(IPv6) || !defined(AF_INET6))
static struct hostent *hp = NULL;
#endif
@@ -727,7 +718,7 @@ get_hostname(XHostAddress *ha)
struct sigaction sa;
#endif
-#if defined(TCPCONN) || defined(STREAMSCONN) || defined(AMTCPCONN)
+#if defined(TCPCONN) || defined(STREAMSCONN)
#if defined(IPv6) && defined(AF_INET6)
if ((ha->family == FamilyInternet) || (ha->family == FamilyInternet6)) {
struct sockaddr_storage saddr;
@@ -817,11 +808,7 @@ get_hostname(XHostAddress *ha)
alarm(0);
if (hp)
return (hp->h_name);
-#ifndef AMTCPCONN
else return (inet_ntoa(*((struct in_addr *)(ha->address))));
-#else
- else return (inet_ntoa(*((ipaddr_t *)(ha->address))));
-#endif
}
#endif /* IPv6 */
#endif