mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
staging/speakup: Changed parameters in kstrtol()
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fb62a3f133
commit
f2ae62fe33
@@ -1892,7 +1892,7 @@ static int handle_goto(struct vc_data *vc, u_char type, u_char ch, u_short key)
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user