diff --git a/src/init.c b/src/init.c index a64d6d4..c67cf45 100644 --- a/src/init.c +++ b/src/init.c @@ -8,7 +8,7 @@ static bool _initialized = false; -static int _init_winsock(void) { +static int _winsock_global_init(void) { int r; WSADATA wsa_data; @@ -20,7 +20,8 @@ static int _init_winsock(void) { } static int _init_once(void) { - if (_init_winsock() < 0 || nt_init() < 0 || reflock_global_init() < 0) + if (_winsock_global_init() < 0 || nt_global_init() < 0 || + reflock_global_init() < 0) return -1; _initialized = true; diff --git a/src/nt.c b/src/nt.c index cfcca48..c62f102 100644 --- a/src/nt.c +++ b/src/nt.c @@ -8,7 +8,7 @@ NTDLL_IMPORT_LIST(X) #undef X -int nt_init(void) { +int nt_global_init(void) { HMODULE ntdll; ntdll = GetModuleHandleW(L"ntdll.dll"); diff --git a/src/nt.h b/src/nt.h index b31eb41..8af8d0f 100644 --- a/src/nt.h +++ b/src/nt.h @@ -5,7 +5,7 @@ #include "ntstatus.h" #include "win.h" -EPOLL_INTERNAL int nt_init(void); +EPOLL_INTERNAL int nt_global_init(void); typedef struct _IO_STATUS_BLOCK { union {