diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-15 05:10:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:17:59 -0400 |
commit | a3d2eaf0dcad6dfdf44f3093aef688dfca714b6c (patch) | |
tree | a8e004bc52b6344451007beb1bf9822aed62004a /net/wireless/reg.h | |
parent | 734366deaee05b1a5842d977960b4cc574d7551d (diff) |
cfg80211: fix regulatory code const
A few pointers and structures in the regulatory code are const,
but because it wasn't done properly a whole bunch of bogus
casts were needed to compile without warning. Mark everything
const properly to avoid that kind of junk code.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/reg.h')
-rw-r--r-- | net/wireless/reg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wireless/reg.h b/net/wireless/reg.h index b169815987f4..a33362872f3c 100644 --- a/net/wireless/reg.h +++ b/net/wireless/reg.h | |||
@@ -2,12 +2,12 @@ | |||
2 | #define __NET_WIRELESS_REG_H | 2 | #define __NET_WIRELESS_REG_H |
3 | 3 | ||
4 | extern struct mutex cfg80211_reg_mutex; | 4 | extern struct mutex cfg80211_reg_mutex; |
5 | bool is_world_regdom(char *alpha2); | 5 | bool is_world_regdom(const char *alpha2); |
6 | bool reg_is_valid_request(char *alpha2); | 6 | bool reg_is_valid_request(const char *alpha2); |
7 | 7 | ||
8 | int regulatory_init(void); | 8 | int regulatory_init(void); |
9 | void regulatory_exit(void); | 9 | void regulatory_exit(void); |
10 | 10 | ||
11 | int set_regdom(struct ieee80211_regdomain *rd); | 11 | int set_regdom(const struct ieee80211_regdomain *rd); |
12 | 12 | ||
13 | #endif /* __NET_WIRELESS_REG_H */ | 13 | #endif /* __NET_WIRELESS_REG_H */ |