Skip to content

Commit 20fa549

Browse files
author
Tero Heinonen
committed
Unused variables removed.
1 parent 685e08d commit 20fa549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/coap_connection_handler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static void secure_recv_sckt_msg(void *cb_res)
395395
uint8_t *pw = (uint8_t *)ns_dyn_mem_alloc(64);
396396
uint8_t pw_len;
397397
if( sock->parent->_get_password_cb && 0 == sock->parent->_get_password_cb(sock->listen_socket, src_address.address, src_address.identifier, pw, &pw_len)){
398-
int ret = coap_security_handler_connect(session->sec_handler, true, pw, pw_len);
398+
coap_security_handler_connect(session->sec_handler, true, pw, pw_len);
399399
//TODO: error handling
400400
}
401401
ns_dyn_mem_free(pw);
@@ -484,7 +484,7 @@ int coap_connection_handler_virtual_recv(thread_conn_handler_t *handler, uint8_t
484484
uint8_t *pw = (uint8_t *)ns_dyn_mem_alloc(64);
485485
uint8_t pw_len;
486486
if( sock->parent->_get_password_cb && 0 == sock->parent->_get_password_cb(sock->listen_socket, address, port, pw, &pw_len)){
487-
int ret = coap_security_handler_connect(session->sec_handler, true, pw, pw_len);
487+
coap_security_handler_connect(session->sec_handler, true, pw, pw_len);
488488
//TODO: error handling
489489
ns_dyn_mem_free(pw);
490490
return 0;

0 commit comments

Comments
 (0)