]> Pileus Git - ~andy/linux/commitdiff
staging: speakup: str initialization replaced with NULL where it was initialized...
authorShalin Mehta <shalinmehta85@gmail.com>
Thu, 3 Oct 2013 08:08:42 +0000 (01:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Oct 2013 20:50:54 +0000 (13:50 -0700)
Fixed warnings in all of three files where the string was initilized with an integer instead of NULL

Signed-off-by: Shalin Mehta <shalinmehta85@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c
drivers/staging/speakup/speakup_audptr.c
drivers/staging/speakup/varhandlers.c

index 14079c4949a8038e801474a2842f09e38e5bd403..47502fa5f3f60a50db71b21a90be9dc9ce9c54ba 100644 (file)
@@ -90,7 +90,7 @@ const struct st_bits_data spk_punc_info[] = {
        {"repeats", "()", CH_RPT},
        {"extended numeric", "", B_EXNUM},
        {"symbols", "", B_SYM},
-       {0, 0}
+       {NULL, NULL}
 };
 
 static char mark_cut_flag;
index 3508aee98ab0651e06b831c22d8e3dd80f975ce3..61a3ceeb0d3ae081258400749cfa68110d24e7a2 100644 (file)
@@ -39,7 +39,7 @@ static struct var_t vars[] = {
        { RATE, .u.n = {"\x05[r%d]", 10, 0, 20, 100, -10, NULL } },
        { PITCH, .u.n = {"\x05[f%d]", 80, 39, 4500, 0, 0, NULL } },
        { VOL, .u.n = {"\x05[g%d]", 21, 0, 40, 0, 0, NULL } },
-       { TONE, .u.n = {"\x05[s%d]", 9, 0, 63, 0, 0, 0 } },
+       { TONE, .u.n = {"\x05[s%d]", 9, 0, 63, 0, 0, NULL } },
        { PUNCT, .u.n = {"\x05[A%c]", 0, 0, 3, 0, 0, "nmsa" } },
        { DIRECT, .u.n = {NULL, 0, 0, 1, 0, 0, NULL } },
        V_LAST_VAR
index 9aa2a78cd71cd87dfad5785a9fab9d2f26e497e2..70231b6dabbaab5dd51b8d8484deb364ad905948 100644 (file)
@@ -46,7 +46,7 @@ static struct st_var_header var_headers[] = {
        { "direct", DIRECT, VAR_NUM, NULL, NULL },
 };
 
-static struct st_var_header *var_ptrs[MAXVARS] = { 0, 0, 0 };
+static struct st_var_header *var_ptrs[MAXVARS] = { NULL, NULL, NULL };
 
 static struct punc_var_t punc_vars[] = {
        { PUNC_SOME, 1 },