diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:10 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:10 -0500 |
commit | 215faf9c5f6e319e97edea9e178123e07825c14d (patch) | |
tree | 32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/skfp | |
parent | 75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff) |
drivers/net/*/: Use static const
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/skfp')
-rw-r--r-- | drivers/net/skfp/smt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 2d9941c045bc..1e1bd0c201c8 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c | |||
@@ -1263,7 +1263,7 @@ void smt_set_timestamp(struct s_smc *smc, u_char *p) | |||
1263 | static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) | 1263 | static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) |
1264 | { | 1264 | { |
1265 | int i ; | 1265 | int i ; |
1266 | u_char *map ; | 1266 | const u_char *map ; |
1267 | u_short in ; | 1267 | u_short in ; |
1268 | u_short out ; | 1268 | u_short out ; |
1269 | 1269 | ||
@@ -1271,7 +1271,7 @@ static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) | |||
1271 | * MIB para 101b (fddiSMTConnectionPolicy) coding | 1271 | * MIB para 101b (fddiSMTConnectionPolicy) coding |
1272 | * is different from 0005 coding | 1272 | * is different from 0005 coding |
1273 | */ | 1273 | */ |
1274 | static u_char ansi_weirdness[16] = { | 1274 | static const u_char ansi_weirdness[16] = { |
1275 | 0,7,5,3,8,1,6,4,9,10,2,11,12,13,14,15 | 1275 | 0,7,5,3,8,1,6,4,9,10,2,11,12,13,14,15 |
1276 | } ; | 1276 | } ; |
1277 | SMTSETPARA(policy,SMT_P_POLICY) ; | 1277 | SMTSETPARA(policy,SMT_P_POLICY) ; |