Skip to content

Commit

Permalink
corrected const *hotwords_buf const* tokens_buf to const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao committed Sep 11, 2024
1 parent f309e1f commit e5dd86e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ int32_t main() {
}

// reading tokens and hotwords to buffers
const *tokens_buf;
const char *tokens_buf;
size_t token_buf_size = read_file(tokens_filename, &tokens_buf);
if(token_buf_size < 1) {
fprintf(stderr, "Please check your tokens.txt!\n");
free(tokens_buf);
return -1;
}
const *hotwords_buf;
const char *hotwords_buf;
size_t hotwords_buf_size = read_file(hotwords_filename, &hotwords_buf);
if(hotwords_buf_size < 1) {
fprintf(stderr, "Please check your hotwords.txt!\n");
Expand Down

0 comments on commit e5dd86e

Please sign in to comment.