init: rename global init functions to be more explicit

This commit is contained in:
Bert Belder 2017-09-23 13:56:40 +02:00
parent a94fbfd459
commit 73d22b4419
3 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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");

View File

@ -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 {