Skip to content

Commit

Permalink
Fix unittests (ARMmbed#52)
Browse files Browse the repository at this point in the history
Rename socket_read_session_address to socket_getpeername due
socket API rework.
  • Loading branch information
Arto Kinnunen authored Dec 7, 2016
1 parent 4a6991e commit 7d72eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/coap-service/unittest/stub/socket_api_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int8_t socket_sendto(int8_t socket, ns_address_t *address, uint8_t *buffer, uint

return socket_api_stub.int8_value;
}
int8_t socket_read_session_address(int8_t socket, ns_address_t *address)
int8_t socket_getpeername(int8_t socket, ns_address_t *address)
{
if( socket_api_stub.counter >= 0){
return socket_api_stub.values[socket_api_stub.counter--];
Expand Down

0 comments on commit 7d72eb4

Please sign in to comment.