test_sockets: fix pointer to integer conversion

This fixes a pointer to integer conversion in test_sockets_msgapi_cmsg()

This was identified by Travis CI: https://travis-ci.org/yarrick/lwip-merged/builds/225640702
This commit is contained in:
Joel Cunningham 2017-04-25 13:46:02 -05:00
parent 836c0cf42e
commit 3a01c32e55

View File

@ -521,7 +521,7 @@ static void test_sockets_msgapi_cmsg(int domain)
/* Verify message header */
cmsg = CMSG_FIRSTHDR(&msg);
fail_unless(cmsg);
fail_unless(cmsg != NULL);
fail_unless(cmsg->cmsg_len > 0);
fail_unless(cmsg->cmsg_level == IPPROTO_IP);
fail_unless(cmsg->cmsg_type = IP_PKTINFO);