diff --git a/clickhouse/base/socket.cpp b/clickhouse/base/socket.cpp index 4de40d6..b8d4510 100644 --- a/clickhouse/base/socket.cpp +++ b/clickhouse/base/socket.cpp @@ -232,9 +232,9 @@ void SocketOutput::DoWrite(const void* data, size_t len) { } -NetrworkInitializer::NetrworkInitializer() { - struct NetrworkInitializerImpl { - NetrworkInitializerImpl() { +NetworkInitializer::NetworkInitializer() { + struct NetworkInitializerImpl { + NetworkInitializerImpl() { #if defined (_win_) WSADATA data; const int result = WSAStartup(MAKEWORD(2, 2), &data); @@ -249,7 +249,7 @@ NetrworkInitializer::NetrworkInitializer() { }; - (void)Singleton(); + (void)Singleton(); } diff --git a/clickhouse/base/socket.h b/clickhouse/base/socket.h index a38a829..2d1bddd 100644 --- a/clickhouse/base/socket.h +++ b/clickhouse/base/socket.h @@ -101,9 +101,9 @@ class SocketOutput : public OutputStream { SOCKET s_; }; -static struct NetrworkInitializer { - NetrworkInitializer(); -} gNetrworkInitializer; +static struct NetworkInitializer { + NetworkInitializer(); +} gNetworkInitializer; /// SOCKET SocketConnect(const NetworkAddress& addr);