From 399dc5d6282f90fee2f6071aadde977280656ffc Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 26 Dec 2012 23:11:36 -0800 Subject: Remove unused DECnet ("DNETCONN") code from xauth Has never been converted to build in modular builds, so has been unusable since X11R7.0 release in 2005. DNETCONN support was removed from xtrans back in 2008. Signed-off-by: Alan Coopersmith --- gethost.c | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) (limited to 'gethost.c') diff --git a/gethost.c b/gethost.c index 6b9ffcc..10f6078 100644 --- a/gethost.c +++ b/gethost.c @@ -57,10 +57,6 @@ in this Software without prior written authorization from The Open Group. #include #include "xauth.h" -#ifdef DNETCONN -#include -#include -#endif #ifndef WIN32 #include @@ -71,10 +67,6 @@ get_hostname (Xauth *auth) { static struct hostent *hp; int af; -#ifdef DNETCONN - struct nodeent *np; - static char nodeaddr[4 + 2 * DN_MAXADDL]; -#endif /* DNETCONN */ hp = NULL; if (auth->address_length == 0) @@ -116,19 +108,6 @@ get_hostname (Xauth *auth) } } #endif -#ifdef DNETCONN - if (auth->family == FamilyDECnet) { - struct dn_naddr *addr_ptr = (struct dn_naddr *) auth->address; - - if ((no_name_lookups == False) && - (np = getnodebyaddr(addr_ptr->a_addr, addr_ptr->a_len, AF_DECnet))) { - sprintf(nodeaddr, "%s:", np->n_name); - } else { - sprintf(nodeaddr, "%s:", dnet_htoa(auth->address)); - } - return(nodeaddr); - } -#endif return (NULL); } @@ -169,25 +148,6 @@ get_inet_address(char *name, unsigned int *resultp) } #endif -#ifdef DNETCONN -static Bool get_dnet_address (name, resultp) - char *name; - struct dn_naddr *resultp; -{ - struct dn_naddr *dnaddrp, dnaddr; - struct nodeent *np; - - if (dnaddrp = dnet_addr (name)) { /* stolen from xhost */ - dnaddr = *dnaddrp; - } else { - if ((np = getnodebyname (name)) == NULL) return False; - dnaddr.a_len = np->n_length; - memmove( dnaddr.a_addr, np->n_addr, np->n_length); - } - *resultp = dnaddr; - return True; -} -#endif struct addrlist *get_address_info ( int family, @@ -207,9 +167,6 @@ struct addrlist *get_address_info ( #else unsigned int hostinetaddr; #endif -#endif -#ifdef DNETCONN - struct dn_naddr dnaddr; #endif char buf[255]; @@ -322,14 +279,7 @@ struct addrlist *get_address_info ( return NULL; #endif case FamilyDECnet: /* host::0 */ -#ifdef DNETCONN - if (!get_dnet_address (host, &dnaddr)) return NULL; - src = (char *) &dnaddr; - len = (sizeof dnaddr); - break; -#else /* fall through since we don't have code for it */ -#endif default: src = NULL; len = 0; -- cgit v1.2.1