Skip to content

Commit a4a9675

Browse files
author
leiffyli
committed
Revert "add hook"
This reverts commit d138835.
1 parent d138835 commit a4a9675

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

co_hook_sys_call.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -822,18 +822,6 @@ struct hostent *gethostbyname(const char *name)
822822
}
823823

824824

825-
struct hostent* co_gethostbyname(const char *name);
826-
827-
struct hostent *gethostbyname(const char *name)
828-
{
829-
HOOK_SYS_FUNC( gethostbyname );
830-
if (!co_is_enable_sys_hook())
831-
{
832-
return g_sys_gethostbyname_func(name);
833-
}
834-
return co_gethostbyname(name);
835-
}
836-
837825
struct res_state_wrap
838826
{
839827
struct __res_state state;

0 commit comments

Comments
 (0)