]> andersk Git - moira.git/blobdiff - lib/fixhost.c
eliminate use of the `register' keyword: let the compiler decide
[moira.git] / lib / fixhost.c
index 989d7c848a705c9decd74312c3d7b13aad7f0928..11e087d5a0ee5d6c20a3ef557ceb4ffd3c610ee4 100644 (file)
@@ -37,12 +37,12 @@ static char *rcsid_fixhost_c = "$Header$";
 
 char *canonicalize_hostname(char *host)
 {
-  register struct hostent *hp;
+  struct hostent *hp;
   int n_len;
   int has_dot = 0;
   char tbuf[BUFSIZ];
   struct utsname name;
-  register char *cp;
+  char *cp;
 
   if (strlen(host) > 2 && host[0] == '"' && host[strlen(host) - 1] == '"')
     {
@@ -70,7 +70,7 @@ char *canonicalize_hostname(char *host)
       /* can't get name from nameserver; fix up the format a bit */
       for (cp = host; *cp; cp++)
        {
-         register int c;       /* pcc doesn't like register char */
+         int c;
          if (islower(c = *cp))
            *cp = toupper(c);
          has_dot |= (c == '.');
This page took 0.058009 seconds and 4 git commands to generate.