Search Linux Wireless

[PATCH 09/20 v4] wext: constify extra argument to wireless_send_event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
---
 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-07-01 08:55:06.000000000 +0200
+++ wireless-testing/include/net/iw_handler.h	2009-07-01 09:01:20.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-07-01 08:59:43.000000000 +0200
+++ wireless-testing/net/wireless/wext.c	2009-07-01 09:01:20.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;

-- 

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux