From 1c4a11275ea7839285e5adfa494daf8515a5f3bf Mon Sep 17 00:00:00 2001 From: mar Date: Thu, 1 Jun 1989 21:37:01 +0000 Subject: [PATCH] removed faulty canonicalize hostname routine --- clients/moira/utils.c | 19 ------------------- 1 file changed, 19 deletions(-) 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. -- 2.45.1