diff options
Diffstat (limited to 'AuGetBest.c')
-rw-r--r-- | AuGetBest.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/AuGetBest.c b/AuGetBest.c index d2a38ee..50eba63 100644 --- a/AuGetBest.c +++ b/AuGetBest.c @@ -32,11 +32,6 @@ in this Software without prior written authorization from The Open Group. #ifdef XTHREADS #include <X11/Xthreads.h> #endif -#ifdef hpux -#define X_INCLUDE_NETDB_H -#define XOS_USE_NO_LOCKING -#include <X11/Xos_r.h> -#endif #ifdef O_CLOEXEC #define FOPEN_CLOEXEC "e" @@ -72,10 +67,6 @@ XauGetBestAuthByAddr ( Xauth *best; int best_type; int type; -#ifdef hpux - char *fully_qual_address; - unsigned short fully_qual_address_length; -#endif auth_name = XauFileName (); if (!auth_name) @@ -86,26 +77,6 @@ XauGetBestAuthByAddr ( if (!auth_file) return NULL; -#ifdef hpux - if (family == FamilyLocal) { -#ifdef XTHREADS_NEEDS_BYNAMEPARAMS - _Xgethostbynameparams hparams; -#endif - struct hostent *hostp; - - /* make sure we try fully-qualified hostname */ - if ((hostp = _XGethostbyname(address,hparams)) != NULL) { - fully_qual_address = hostp->h_name; - fully_qual_address_length = strlen(fully_qual_address); - } - else - { - fully_qual_address = NULL; - fully_qual_address_length = 0; - } - } -#endif /* hpux */ - best = NULL; best_type = types_length; for (;;) { @@ -129,12 +100,6 @@ XauGetBestAuthByAddr ( (entry->family == family && ((address_length == entry->address_length && binaryEqual (entry->address, address, address_length)) -#ifdef hpux - || (family == FamilyLocal && - fully_qual_address_length == entry->address_length && - binaryEqual (entry->address, fully_qual_address, - fully_qual_address_length)) -#endif ))) && (number_length == 0 || entry->number_length == 0 || (number_length == entry->number_length && |