staging/speakup: Changed parameters in kstrtol()
authorLisa Nguyen <lisa@xenapiadmin.com>
Tue, 21 May 2013 20:31:48 +0000 (13:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 20:53:42 +0000 (13:53 -0700)
Changed parameters in the kstrtol() function inside main.c to resolve
warnings re: mismatched data types used.

Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c

index e91d2132a873c71570e06a5872278c3948956b52..4769c895e01f01bc8b709bd6b42ad9fa7aecc0bb 100644 (file)
@@ -1892,7 +1892,7 @@ oops:
                spk_special_handler = NULL;
                return 1;
        }
-       go_pos = kstrtol(goto_buf, &cp, 10);
+       go_pos = kstrtol(goto_buf, 10, (long *)&cp);
        goto_pos = (u_long) go_pos;
        if (*cp == 'x') {
                if (*goto_buf < '0')