From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Tue, 20 Oct 2020 17:09:56 -0400 Subject: [Cluster-devel] [PATCH dlm/next 2/3] fs: dlm: constify addr_compare In-Reply-To: <20201020210957.1009638-1-aahringo@redhat.com> References: <20201020210957.1009638-1-aahringo@redhat.com> Message-ID: <20201020210957.1009638-3-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch just constify some function parameter which should be have a read access only. Signed-off-by: Alexander Aring --- fs/dlm/lowcomms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 9973293bfddcd..c23d794e82910 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -270,7 +270,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: { -- 2.26.2