From: Alexandra Ellwood Date: Thu, 27 May 1999 19:09:34 +0000 (+0000) Subject: Removed call to getmyipaddr since Sockets has gethostname X-Git-Tag: krb5-1.1-beta1~132 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d6c628ad9e0d5878b5baf38e65bdca6dd25dd9e;p=krb5.git Removed call to getmyipaddr since Sockets has gethostname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11472 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index e0b4aa90b..8dd402e49 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -300,16 +300,6 @@ krb5_os_localaddr (krb5_context context, krb5_address ***addr) { if (*addr == NULL) return ENOMEM; -#ifdef HAVE_MACSOCK_H - hostrec = getmyipaddr(); - /* - * XXX This error code is not right, but we have nothing better. - * This will get fixed when we eventually replace the entire - * Macintosh socket emulation layer. - */ - if (!hostrec) - return ENOMEM; -#else /* HAVE_MACSOCK_H */ err = 0; if (gethostname (host, sizeof(host))) { @@ -328,7 +318,6 @@ krb5_os_localaddr (krb5_context context, krb5_address ***addr) { if (!hostrec) return err; } -#endif /* HAVE_MACSOCK_H */ (*addr)[0] = calloc (1, sizeof(krb5_address)); if ((*addr)[0] == NULL) {