Explorar o código

fixing win32 - second

Stasik0 %!s(int64=10) %!d(string=hai) anos
pai
achega
b26678b598
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/networklayer_tcp.c

+ 1 - 1
examples/networklayer_tcp.c

@@ -477,7 +477,7 @@ static UA_StatusCode ClientNetworkLayerTCP_connect(const UA_String endpointUrl,
     UA_Int32 sock = 0;
 #endif
 #ifdef _WIN32
-    if((layer->serversockfd = socket(PF_INET, SOCK_STREAM,0)) == INVALID_SOCKET) {
+    if((sock = socket(PF_INET, SOCK_STREAM,0)) == INVALID_SOCKET) {
 #else
     if((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
 #endif