From 73d22b44195cc13d54f8306f1b16d3fbf9e9f3ff Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 23 Sep 2017 13:56:40 +0200 Subject: [PATCH] init: rename global init functions to be more explicit --- src/init.c | 5 +++-- src/nt.c | 2 +- src/nt.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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 {