X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=overhosts.git;a=blobdiff_plain;f=overhosts.c;fp=overhosts.c;h=2aee594b800d68c7d4ab07902137d4836760100c;hp=a23a5cff7bbde9d606be89b9ae0381641aa52eb7;hb=784ab8fa6a1670d7ab7370212d7c88840240c062;hpb=855960176ab2d7471ca6cd83e2d31b046150194d 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)); } }