tag_pool: use size_t for string length
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user