diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-12-26 23:11:36 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-12-26 23:12:27 -0800 |
commit | 399dc5d6282f90fee2f6071aadde977280656ffc (patch) | |
tree | bb13a460bd0b2207c918a2e30d1feb104f80b717 /gethost.c | |
parent | fe46fcc3ae58767960434445a4ea9c3ce0a6724e (diff) | |
download | xorg-app-xauth-399dc5d6282f90fee2f6071aadde977280656ffc.tar.gz |
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'gethost.c')
-rw-r--r-- | gethost.c | 50 |
1 files changed, 0 insertions, 50 deletions
@@ -57,10 +57,6 @@ in this Software without prior written authorization from The Open Group. #include <errno.h> #include "xauth.h" -#ifdef DNETCONN -#include <netdnet/dn.h> -#include <netdnet/dnetdb.h> -#endif #ifndef WIN32 #include <arpa/inet.h> @@ -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, @@ -208,9 +168,6 @@ struct addrlist *get_address_info ( 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; |