From 842a235a68dbe930e16055f239bbff4d47f0e57d Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 25 Apr 2017 23:08:53 +0200 Subject: [PATCH] fix test_sockets_msgapi_cmsg unit test (msvc gives me "warning C4706: assignment within conditional expression") --- test/unit/api/test_sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/api/test_sockets.c b/test/unit/api/test_sockets.c index cff01a8e..643b54a7 100644 --- a/test/unit/api/test_sockets.c +++ b/test/unit/api/test_sockets.c @@ -524,7 +524,7 @@ static void test_sockets_msgapi_cmsg(int domain) fail_unless(cmsg != NULL); fail_unless(cmsg->cmsg_len > 0); fail_unless(cmsg->cmsg_level == IPPROTO_IP); - fail_unless(cmsg->cmsg_type = IP_PKTINFO); + fail_unless(cmsg->cmsg_type == IP_PKTINFO); /* Verify message data */ pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg);