Skip to content

Commit

Permalink
tests: Use const modifier in internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Oct 2, 2023
1 parent 99c1840 commit 12896c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/psocket_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static pboolean test_socket_address_directly (const PSocketAddress *addr, puint1
return ret;
}

static pboolean test_socket_address (PSocket *socket, puint16 port)
static pboolean test_socket_address (const PSocket *socket, puint16 port)
{
/* Test remote address */
PSocketAddress *remote_addr = p_socket_get_remote_address (socket, NULL);
Expand Down
2 changes: 1 addition & 1 deletion tests/ptree_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extern "C" void pmem_free (ppointer block)
}

static pint
tree_complexity (PTree *tree)
tree_complexity (const PTree *tree)
{
if (tree == NULL || p_tree_get_nnodes (tree) == 0)
return 0;
Expand Down

0 comments on commit 12896c5

Please sign in to comment.