Commit 40c6b83e authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

fs: dlm: constify addr_compare



This patch just constify some function parameter which should be have a
read access only.

Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 1a26bfaf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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: {