From 51894725ec02dd796878414168c25857e2e0b95a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Mar 2009 19:36:03 +0100 Subject: tag_pool: use size_t for string length --- src/tag_pool.c | 4 ++-- src/tag_pool.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tag_pool.c b/src/tag_pool.c index 7224db725..fb59669e6 100644 --- a/src/tag_pool.c +++ b/src/tag_pool.c @@ -93,8 +93,8 @@ void tag_pool_deinit(void) tag_pool_lock = NULL; } -struct tag_item *tag_pool_get_item(enum tag_type type, - const char *value, int length) +struct tag_item * +tag_pool_get_item(enum tag_type type, const char *value, size_t length) { struct slot **slot_p, *slot; diff --git a/src/tag_pool.h b/src/tag_pool.h index b9e3f375a..991a32a7e 100644 --- a/src/tag_pool.h +++ b/src/tag_pool.h @@ -32,8 +32,8 @@ void tag_pool_init(void); void tag_pool_deinit(void); -struct tag_item *tag_pool_get_item(enum tag_type type, - const char *value, int length); +struct tag_item * +tag_pool_get_item(enum tag_type type, const char *value, size_t length); struct tag_item *tag_pool_dup_item(struct tag_item *item); -- cgit v1.2.3