From 784ab8fa6a1670d7ab7370212d7c88840240c062 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Mon, 13 Feb 2012 12:28:31 +0100 Subject: [PATCH] wrong original functions names typo fixed --- makefile | 2 +- overhosts.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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)); } } -- 2.17.1