mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-11 18:36:41 +00:00
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:
parent
836c0cf42e
commit
3a01c32e55
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user