diff options
author | Mitchell Blank Jr <mitch@sfgoth.com> | 2008-06-17 19:20:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 19:20:06 -0400 |
commit | 61c33e012964ce358b42d2a1e9cd309af5dab02b (patch) | |
tree | e76ac9b1e61a998def99f0f8f7fa4688fab26494 /net/atm/addr.c | |
parent | df3bc8bd8f8fd17e9b22859d82af38fa702e75b7 (diff) |
atm: use const where reasonable
From: Mitchell Blank Jr <mitch@sfgoth.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/addr.c')
-rw-r--r-- | net/atm/addr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/atm/addr.c b/net/atm/addr.c index 6afa77d63bb5..82e85abc303d 100644 --- a/net/atm/addr.c +++ b/net/atm/addr.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "signaling.h" | 9 | #include "signaling.h" |
10 | #include "addr.h" | 10 | #include "addr.h" |
11 | 11 | ||
12 | static int check_addr(struct sockaddr_atmsvc *addr) | 12 | static int check_addr(const struct sockaddr_atmsvc *addr) |
13 | { | 13 | { |
14 | int i; | 14 | int i; |
15 | 15 | ||
@@ -23,7 +23,7 @@ static int check_addr(struct sockaddr_atmsvc *addr) | |||
23 | return -EINVAL; | 23 | return -EINVAL; |
24 | } | 24 | } |
25 | 25 | ||
26 | static int identical(struct sockaddr_atmsvc *a, struct sockaddr_atmsvc *b) | 26 | static int identical(const struct sockaddr_atmsvc *a, const struct sockaddr_atmsvc *b) |
27 | { | 27 | { |
28 | if (*a->sas_addr.prv) | 28 | if (*a->sas_addr.prv) |
29 | if (memcmp(a->sas_addr.prv, b->sas_addr.prv, ATM_ESA_LEN)) | 29 | if (memcmp(a->sas_addr.prv, b->sas_addr.prv, ATM_ESA_LEN)) |
@@ -35,7 +35,7 @@ static int identical(struct sockaddr_atmsvc *a, struct sockaddr_atmsvc *b) | |||
35 | return !strcmp(a->sas_addr.pub, b->sas_addr.pub); | 35 | return !strcmp(a->sas_addr.pub, b->sas_addr.pub); |
36 | } | 36 | } |
37 | 37 | ||
38 | static void notify_sigd(struct atm_dev *dev) | 38 | static void notify_sigd(const struct atm_dev *dev) |
39 | { | 39 | { |
40 | struct sockaddr_atmpvc pvc; | 40 | struct sockaddr_atmpvc pvc; |
41 | 41 | ||
@@ -63,7 +63,7 @@ void atm_reset_addr(struct atm_dev *dev, enum atm_addr_type_t atype) | |||
63 | notify_sigd(dev); | 63 | notify_sigd(dev); |
64 | } | 64 | } |
65 | 65 | ||
66 | int atm_add_addr(struct atm_dev *dev, struct sockaddr_atmsvc *addr, | 66 | int atm_add_addr(struct atm_dev *dev, const struct sockaddr_atmsvc *addr, |
67 | enum atm_addr_type_t atype) | 67 | enum atm_addr_type_t atype) |
68 | { | 68 | { |
69 | unsigned long flags; | 69 | unsigned long flags; |
@@ -98,7 +98,7 @@ int atm_add_addr(struct atm_dev *dev, struct sockaddr_atmsvc *addr, | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | int atm_del_addr(struct atm_dev *dev, struct sockaddr_atmsvc *addr, | 101 | int atm_del_addr(struct atm_dev *dev, const struct sockaddr_atmsvc *addr, |
102 | enum atm_addr_type_t atype) | 102 | enum atm_addr_type_t atype) |
103 | { | 103 | { |
104 | unsigned long flags; | 104 | unsigned long flags; |