tag_pool: use size_t for string length

This commit is contained in:
Max Kellermann
2009-03-27 19:36:03 +01:00
parent 8fa44d53ab
commit 51894725ec
2 changed files with 4 additions and 4 deletions

View File

@@ -93,8 +93,8 @@ void tag_pool_deinit(void)
tag_pool_lock = NULL; tag_pool_lock = NULL;
} }
struct tag_item *tag_pool_get_item(enum tag_type type, struct tag_item *
const char *value, int length) tag_pool_get_item(enum tag_type type, const char *value, size_t length)
{ {
struct slot **slot_p, *slot; struct slot **slot_p, *slot;

View File

@@ -32,8 +32,8 @@ void tag_pool_init(void);
void tag_pool_deinit(void); void tag_pool_deinit(void);
struct tag_item *tag_pool_get_item(enum tag_type type, struct tag_item *
const char *value, int length); 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); struct tag_item *tag_pool_dup_item(struct tag_item *item);