From: Alexander Aring Date: Tue, 3 Nov 2020 01:04:27 +0000 (-0500) Subject: fs: dlm: constify addr_compare X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40c6b83e5a07d1dc3952a5ad040eb1c7c966c4fe;p=linux.git 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 Signed-off-by: David Teigland --- diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index f7e86791a0825..7f85594b663a8 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: {