Browse Source

fixing more signess problems https://travis-ci.org/acplt/open62541/builds/47113733#L334

Stasik0 10 years ago
parent
commit
9b8b1f71cc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      examples/networklayer_tcp.c

+ 5 - 1
examples/networklayer_tcp.c

@@ -64,7 +64,11 @@ typedef struct NetworkLayerTCP {
     /* We remove the connection links only in the main thread. Attach
     /* We remove the connection links only in the main thread. Attach
        to-be-deleted links with atomic operations */
        to-be-deleted links with atomic operations */
     struct deleteLink {
     struct deleteLink {
-        UA_Int32 sockfd;
+#ifdef _WIN32
+		UA_UInt32 sockfd;
+#else
+		UA_Int32 sockfd;
+#endif
         struct deleteLink *next;
         struct deleteLink *next;
     } *deleteLinkList;
     } *deleteLinkList;
 } NetworkLayerTCP;
 } NetworkLayerTCP;