wrong original functions names typo fixed master v0.0.2
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Mon, 13 Feb 2012 11:28:31 +0000 (12:28 +0100)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Mon, 13 Feb 2012 11:29:21 +0000 (12:29 +0100)
makefile
overhosts.c

index d0ad137..58cabfd 100644 (file)
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@
 #  Project overhosts
 #
 
-VER=0.0.1
+VER=0.0.2
 EXE=overhosts.so test
 OBJ=overhosts.o
 PKGNAME=overhosts
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));
     }
 }