Skip to content

Commit

Permalink
wext: constify extra argument to wireless_send_event
Browse files Browse the repository at this point in the history
This is never changed by the function, so can be marked const.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 10, 2009
1 parent 0575606 commit 5121ea0
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/iw_handler.h
Original file line number Diff line number Diff line change
@@ -443,7 +443,7 @@ extern int dev_get_wireless_info(char * buffer, char **start, off_t offset,
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... */
2 changes: 1 addition & 1 deletion net/wireless/wext.c
Original file line number Diff line number Diff line change
@@ -1376,7 +1376,7 @@ static void rtmsg_iwinfo(struct net_device *dev, char *event, int event_len)
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;

0 comments on commit 5121ea0

Please sign in to comment.