Skip to contentSkip to conversation

mac80211: add const where possible in michael.[ch]

PATCH New Harvey Harrison 1 participant 1 message Apr 16, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 mac80211: add const where possible in michael.[ch]

---
Andrew, 5 more cleanup patches for -mm on top of the 3 sent earlier today. Setting the stage for a bit more to come later.

 net/mac80211/michael.c |    4 ++--
 net/mac80211/michael.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
net/mac80211/michael.c +2 -2
index a9f5323..30b542e 100644
@@ -27,7 +27,7 @@ static void michael_block(u32 val, struct michael_mic_ctx *mctx)
 }
 
 void michael_mic_init(struct michael_mic_ctx *mctx,
-		      u8 *key, u8 *da, u8 *sa, u8 priority)
+		      const u8 *key, const u8 *da, const u8 *sa, u8 priority)
 {
 	mctx->l = get_unaligned_le32(key);
 	mctx->r = get_unaligned_le32(key + 4);
@@ -40,7 +40,7 @@ void michael_mic_init(struct michael_mic_ctx *mctx,
 	michael_block(priority, mctx);
 }
 
-void michael_mic(struct michael_mic_ctx *mctx, u8 *data, size_t data_len)
+void michael_mic(struct michael_mic_ctx *mctx, const u8 *data, size_t data_len)
 {
 	u32 val;
 	size_t block, blocks, left;
net/mac80211/michael.h +2 -2
index 5976550..c1a0fc6 100644
@@ -19,9 +19,9 @@ struct michael_mic_ctx {
 };
 
 extern void michael_mic_init(struct michael_mic_ctx *mctx,
-		 u8 *key, u8 *da, u8 *sa, u8 priority);
+		 const u8 *key, const u8 *da, const u8 *sa, u8 priority);
 
 extern void michael_mic(struct michael_mic_ctx *mctx,
-		 u8 *data, size_t data_len);
+		 const u8 *data, size_t data_len);
 
 #endif /* MICHAEL_H */
Signature · 1 line
1.5.5.144.g3e42