From: mar Date: Thu, 1 Jun 1989 21:37:01 +0000 (+0000) Subject: removed faulty canonicalize hostname routine X-Git-Tag: PATCH5~82 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/1c4a11275ea7839285e5adfa494daf8515a5f3bf removed faulty canonicalize hostname routine --- diff --git a/clients/moira/utils.c b/clients/moira/utils.c index 4c9e734e..c486d963 100644 --- a/clients/moira/utils.c +++ b/clients/moira/utils.c @@ -584,25 +584,6 @@ char ** current; return(SUB_NORMAL); } -/* Function Name: CanonicalizeHostname - * Description: This function takes a machine name and canonicalize's it. - * Arguments: machine - name of the machine to work on. - * Returns: new name or NULL if nameserver returns error - */ - -char * -CanonicalizeHostname(machine) -char *machine; -{ - struct hostent *hostinfo; - - hostinfo = gethostbyname(machine); -/* If this fails then we just return what we were passed. */ - if (hostinfo != (struct hostent *) NULL) - machine = hostinfo->h_name; - return (machine); -} - /* Function Name: Strsave * Description: save a string. * Arguments: string - the string to save.