Skip to content

Commit 59545f9

Browse files
author
Antti Kauppila
authored
Update socket_api_test.cpp
1 parent beddb01 commit 59545f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nanostack/unittest/libNET/socket_api/socket_api_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ TEST(SocketAPI, socket_getsockopt)
886886
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
887887
BYTES_EQUAL(0, status);
888888
int16_t *table = (int16_t*)option;
889-
BYTES_EQUAL(64, table);
889+
BYTES_EQUAL(64, table[0]);
890890
BYTES_EQUAL(2, option_len);
891891
option_len = 4;
892892

@@ -898,7 +898,7 @@ TEST(SocketAPI, socket_getsockopt)
898898
status = socket_getsockopt(sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
899899
BYTES_EQUAL(0, status);
900900
uint8_t *table2 = (uint8_t*)option;
901-
BYTES_EQUAL(entry.cur_hop_limit, table2);
901+
BYTES_EQUAL(entry.cur_hop_limit, table2[0]);
902902
BYTES_EQUAL(2, option_len);
903903
option_len = 4;
904904

0 commit comments

Comments
 (0)