Skip to content

Commit

Permalink
staging/speakup: Replaced deprecated function
Browse files Browse the repository at this point in the history
Replaced simple_strtol() function with kstrtol() function
in main.c

Signed-off-by: Lisa Nguyen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Lisa Nguyen authored and gregkh committed May 17, 2013
1 parent 69d8ba5 commit a87af7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/speakup/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a87af7c

Please sign in to comment.