staging: speakup: Change char * array type as static const
authorDilek Uzulmez <dilekuzulmez@gmail.com>
Tue, 7 Oct 2014 07:59:18 +0000 (10:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:12 +0000 (10:29 +0800)
This patch fixes "char * array declaration might be better as static
const" checkpatch.pl warning in main.c

Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c

index 3f30a1b6e72c2f684541adbcea2e9fd0dcfc7b88..e9f0c150d2467632a3581eb98459431ca2aa7973 100644 (file)
@@ -695,7 +695,7 @@ static void say_next_word(struct vc_data *vc)
 
 static void spell_word(struct vc_data *vc)
 {
-       static char *delay_str[] = { "", ",", ".", ". .", ". . ." };
+       static char const *delay_str[] = { "", ",", ".", ". .", ". . ." };
        char *cp = buf, *str_cap = spk_str_caps_stop;
        char *cp1, *last_cap = spk_str_caps_stop;
        u_char ch;