mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
staging/speakup: Replaced deprecated function
Replaced simple_strtol() function with kstrtol() function in main.c Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
69d8ba5659
commit
a87af7c58b
|
|
@ -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 = simple_strtol(goto_buf, &cp, 10);
|
||||
go_pos = kstrtol(goto_buf, &cp, 10);
|
||||
goto_pos = (u_long) go_pos;
|
||||
if (*cp == 'x') {
|
||||
if (*goto_buf < '0')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user