From 3cbc7cb0dc73406bf4b909d3684bcdf9c481f326 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Mon, 14 May 2018 20:51:38 +0200 Subject: [PATCH] Problem: C4244 warnings regarding SOCKET vs. int in test_security_null and test_security_plain Solution: Use fd_t --- tests/test_security_null.cpp | 2 +- tests/test_security_plain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_security_null.cpp b/tests/test_security_null.cpp index 90ad5caa..d6f8beb6 100644 --- a/tests/test_security_null.cpp +++ b/tests/test_security_null.cpp @@ -209,7 +209,7 @@ int main (void) assert (rc == 0); struct sockaddr_in ip4addr; - int s; + fd_t s; unsigned short int port; rc = sscanf (my_endpoint, "tcp://127.0.0.1:%hu", &port); diff --git a/tests/test_security_plain.cpp b/tests/test_security_plain.cpp index 8542c323..1ca2e5ad 100644 --- a/tests/test_security_plain.cpp +++ b/tests/test_security_plain.cpp @@ -170,7 +170,7 @@ int main (void) // Unauthenticated messages from a vanilla socket shouldn't be received struct sockaddr_in ip4addr; - int s; + fd_t s; unsigned short int port; rc = sscanf (my_endpoint, "tcp://127.0.0.1:%hu", &port);