From: Matteo Nastasi Date: Mon, 13 Feb 2012 11:28:31 +0000 (+0100) Subject: wrong original functions names typo fixed X-Git-Tag: v0.0.2^0 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;ds=inline;h=784ab8fa6a1670d7ab7370212d7c88840240c062;p=overhosts.git wrong original functions names typo fixed --- diff --git a/makefile b/makefile index d0ad137..58cabfd 100644 --- 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 diff --git a/overhosts.c b/overhosts.c index a23a5cf..2aee594 100644 --- a/overhosts.c +++ b/overhosts.c @@ -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)); } }