]> andersk Git - moira.git/commitdiff
removed faulty canonicalize hostname routine
authormar <mar>
Thu, 1 Jun 1989 21:37:01 +0000 (21:37 +0000)
committermar <mar>
Thu, 1 Jun 1989 21:37:01 +0000 (21:37 +0000)
clients/moira/utils.c

index 4c9e734eb6c0b6e527707ba81d2e04bf4321d766..c486d9632f94152d738d7d8269af0b4e27962bf3 100644 (file)
@@ -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.
This page took 0.205955 seconds and 5 git commands to generate.