Skip to content

Commit

Permalink
scripts/kallsyms: make find_token() return (unsigned char *)
Browse files Browse the repository at this point in the history
The callers of this function expect (unsigned char *). I do not see
a good reason to make this function return (void *).

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Nov 25, 2019
1 parent aa91524 commit 2558c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ static void build_initial_tok_table(void)
learn_symbol(table[i].sym, table[i].len);
}

static void *find_token(unsigned char *str, int len, unsigned char *token)
static unsigned char *find_token(unsigned char *str, int len,
unsigned char *token)
{
int i;

Expand Down

0 comments on commit 2558c13

Please sign in to comment.