From e5dd86e6dc998ee08a87ee7bf595c9ad2746306a Mon Sep 17 00:00:00 2001 From: xiao Date: Wed, 11 Sep 2024 09:02:30 +0800 Subject: [PATCH] corrected const *hotwords_buf const* tokens_buf to const char* --- .../streaming-zipformer-buffered-tokens-hotwords-c-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c b/c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c index bd8b1296c..fa933404a 100644 --- a/c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c +++ b/c-api-examples/streaming-zipformer-buffered-tokens-hotwords-c-api.c @@ -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");