wext: constify extra argument to wireless_send_event
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 1 Jul 2009 19:26:50 +0000 (21:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:01:49 +0000 (15:01 -0400)
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>
include/net/iw_handler.h
net/wireless/wext.c

index 51b9a37de991198999c48a8bf45d8b05a49bf3ec..2b3fbbb8669e2f555b5de18e9b32403aedad6054 100644 (file)
@@ -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... */
index 5da07e079c207047742e67c44bc4381a6ddda99f..425f7d58b9612c1961b7b3ea8e386891d001113e 100644 (file)
@@ -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;