Skip to content

Commit

Permalink
fs: dlm: constify addr_compare
Browse files Browse the repository at this point in the history
This patch just constify some function parameter which should be have a
read access only.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Alexander Aring authored and David Teigland committed Nov 10, 2020
1 parent 1a26bfa commit 40c6b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ static struct dlm_node_addr *find_node_addr(int nodeid)
return NULL;
}

static int addr_compare(struct sockaddr_storage *x, struct sockaddr_storage *y)
static int addr_compare(const struct sockaddr_storage *x,
const struct sockaddr_storage *y)
{
switch (x->ss_family) {
case AF_INET: {
Expand Down

0 comments on commit 40c6b83

Please sign in to comment.