From 387f22c564289db77315c0d6914e127fc99774bc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 Mar 2010 21:04:48 +0100 Subject: [PATCH] icu_iter_get_token_number returns int --- include/yaz/icu.h | 2 +- src/icu_chain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/yaz/icu.h b/include/yaz/icu.h index 4abba69..10af2a3 100644 --- a/include/yaz/icu.h +++ b/include/yaz/icu.h @@ -168,7 +168,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter); \returns token count (1, 2, 3...) */ YAZ_EXPORT -const char *icu_iter_get_token_number(yaz_icu_iter_t iter); +int icu_iter_get_token_number(yaz_icu_iter_t iter); YAZ_END_CDECL diff --git a/src/icu_chain.c b/src/icu_chain.c index e1addb7..8ae80fc 100644 --- a/src/icu_chain.c +++ b/src/icu_chain.c @@ -490,7 +490,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter) return icu_buf_utf8_to_cstr(iter->display); } -const char *icu_iter_get_token_number(yaz_icu_iter_t iter) +int icu_iter_get_token_number(yaz_icu_iter_t iter) { return iter->token_count; } -- 1.7.10.4