mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 03:54:02 +00:00
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>
This commit is contained in:
parent
1a26bfafbc
commit
40c6b83e5a
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ static struct dlm_node_addr *find_node_addr(int nodeid)
|
||||||
return NULL;
|
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) {
|
switch (x->ss_family) {
|
||||||
case AF_INET: {
|
case AF_INET: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue