public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wext: constify extra argument to wireless_send_event
@ 2009-06-30 11:11 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-06-30 11:11 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

This is never changed by the function, so can be marked const.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 include/net/iw_handler.h |    2 +-
 net/wireless/wext.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- wireless-testing.orig/include/net/iw_handler.h	2009-06-30 13:09:14.000000000 +0200
+++ wireless-testing/include/net/iw_handler.h	2009-06-30 13:09:22.000000000 +0200
@@ -443,7 +443,7 @@ extern int dev_get_wireless_info(char * 
 extern void wireless_send_event(struct net_device *	dev,
 				unsigned int		cmd,
 				union iwreq_data *	wrqu,
-				char *			extra);
+				const char *		extra);
 
 /* We may need a function to send a stream of events to user space.
  * More on that later... */
--- wireless-testing.orig/net/wireless/wext.c	2009-06-30 13:09:25.000000000 +0200
+++ wireless-testing/net/wireless/wext.c	2009-06-30 13:09:31.000000000 +0200
@@ -1376,7 +1376,7 @@ static void rtmsg_iwinfo(struct net_devi
 void wireless_send_event(struct net_device *	dev,
 			 unsigned int		cmd,
 			 union iwreq_data *	wrqu,
-			 char *			extra)
+			 const char *		extra)
 {
 	const struct iw_ioctl_description *	descr = NULL;
 	int extra_len = 0;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-30 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 11:11 [PATCH] wext: constify extra argument to wireless_send_event Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox