From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from xc.sipsolutions.net ([83.246.72.84]:56229 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752647AbZF3LLA (ORCPT ); Tue, 30 Jun 2009 07:11:00 -0400 Subject: [PATCH] wext: constify extra argument to wireless_send_event From: Johannes Berg To: John Linville Cc: linux-wireless Content-Type: text/plain Date: Tue, 30 Jun 2009 13:11:01 +0200 Message-Id: <1246360261.16643.8.camel@johannes.local> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: This is never changed by the function, so can be marked const. Signed-off-by: Johannes Berg --- 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;