@@ -885,7 +885,8 @@ TEST(SocketAPI, socket_getsockopt)
885
885
886
886
status = socket_getsockopt (sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
887
887
BYTES_EQUAL (0 , status);
888
- BYTES_EQUAL (64 , option);
888
+ int16_t *table = (int16_t *)option;
889
+ BYTES_EQUAL (64 , table);
889
890
BYTES_EQUAL (2 , option_len);
890
891
option_len = 4 ;
891
892
@@ -896,7 +897,8 @@ TEST(SocketAPI, socket_getsockopt)
896
897
test_data->socket_ptr ->inet_pcb ->session = &tcp_session;
897
898
status = socket_getsockopt (sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
898
899
BYTES_EQUAL (0 , status);
899
- BYTES_EQUAL (entry.cur_hop_limit , option);
900
+ uint8_t *table2 = (uint8_t *)option;
901
+ BYTES_EQUAL (entry.cur_hop_limit , table2);
900
902
BYTES_EQUAL (2 , option_len);
901
903
option_len = 4 ;
902
904
@@ -987,15 +989,15 @@ TEST(SocketAPI, socket_recvmsg)
987
989
status = socket_recvmsg (sock_id, &msghdr, 0 );
988
990
/* Would block*/
989
991
BYTES_EQUAL (-100 , status);
990
-
992
+
991
993
socket_stub.socket_read_cnt = 10 ;
992
994
msg_iov.iov_base = buf;
993
995
buffer_t *read_buffer = test_data->socket_read_buffer ;
994
996
uint8_t *ptr;
995
997
ptr = buffer_data_pointer (read_buffer);
996
998
ptr = common_write_16_bit (1000 , ptr);
997
999
read_buffer->buf_end = ptr - read_buffer->buf ;
998
-
1000
+
999
1001
read_buffer->interface = &interface;
1000
1002
read_buffer->interface ->id = 2 ;
1001
1003
read_buffer->size = 4 ;
0 commit comments