wrong original functions names typo fixed
[overhosts.git] / overhosts.c
index a23a5cf..2aee594 100644 (file)
@@ -127,10 +127,10 @@ struct hostent *gethostbyname2(const char *name, int af)
 {
     char *real;
     if (is_an_alias(name) && (real = getenv("OVERHOSTS_REAL")) != NULL) {
-        return (gethostbyname2(real, af));
+        return (ohreal_gethostbyname2(real, af));
     }
     else {
-        return (gethostbyname2(name, af));
+        return (ohreal_gethostbyname2(name, af));
     }
 }
 
@@ -141,10 +141,10 @@ struct hostent *gethostbyname(const char *name)
 {
     char *real;
     if (is_an_alias(name) && (real = getenv("OVERHOSTS_REAL")) != NULL) {
-        return (gethostbyname(real));
+        return (ohreal_gethostbyname(real));
     }
     else {
-        return (gethostbyname(name));
+        return (ohreal_gethostbyname(name));
     }
 }