staging: rtl8188eu: make struct field of action_handler const
authorMichael Straube <straube.linux@gmail.com>
Thu, 4 Oct 2018 17:56:59 +0000 (19:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 13:17:27 +0000 (15:17 +0200)
The strings in the use of struct action_handler are constant.
Change the type of field str from 'char *' to 'const char *'.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h

index 3e8a0ab..38911a7 100644 (file)
@@ -238,7 +238,7 @@ struct mlme_handler {
 
 struct action_handler {
        unsigned int   num;
-       char *str;
+       const char *str;
        unsigned int (*func)(struct adapter *adapt, struct recv_frame *frame);
 };