projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a26bfa
)
fs: dlm: constify addr_compare
author
Alexander Aring
<aahringo@redhat.com>
Tue, 3 Nov 2020 01:04:27 +0000
(20:04 -0500)
committer
David Teigland
<teigland@redhat.com>
Tue, 10 Nov 2020 18:14:20 +0000
(12:14 -0600)
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>
fs/dlm/lowcomms.c
patch
|
blob
|
history
diff --git
a/fs/dlm/lowcomms.c
b/fs/dlm/lowcomms.c
index f7e86791a0825b085806463cebb129cddca37fcd..7f85594b663a899fad2dcad14bcc2ca10b2c979b 100644
(file)
--- 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: {