summaryrefslogtreecommitdiff
path: root/fs/dlm
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2020-11-02 20:04:27 -0500
committerDavid Teigland <teigland@redhat.com>2020-11-10 12:14:20 -0600
commit40c6b83e5a07d1dc3952a5ad040eb1c7c966c4fe (patch)
tree06ac00dadca9fb958604d6d51c6c6a2c7eca5de7 /fs/dlm
parent1a26bfafbce0f2ec8cfe04d9cdcaead0e6dd58ec (diff)
fs: dlm: constify addr_compare
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lowcomms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index f7e86791a082..7f85594b663a 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -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: {