wext: constify extra argument to wireless_send_event
Johannes Berg
maintainerPATCH 1/1 wext: constify extra argument to wireless_send_event
This is never changed by the function, so can be marked const.
Signed-off-by Johannes Berg <[email protected]>
--- include/net/iw_handler.h | 2 +- net/wireless/wext.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/net/iw_handler.h +1 -1
@@ -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... */
net/wireless/wext.c +1 -1
@@ -1376,7 +1376,7 @@ static void rtmsg_iwinfo(struct net_devivoid 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 ;