diff options
author | Max Kellermann <max@duempel.org> | 2009-03-27 19:36:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-27 19:36:03 +0100 |
commit | 51894725ec02dd796878414168c25857e2e0b95a (patch) | |
tree | c5cac4f5a489b6a3eadfa1f3d7b84850c78a20f0 | |
parent | 8fa44d53ab1c1edb0a78da32b69f4f71b91817db (diff) | |
download | mpd-51894725ec02dd796878414168c25857e2e0b95a.tar.gz mpd-51894725ec02dd796878414168c25857e2e0b95a.tar.xz mpd-51894725ec02dd796878414168c25857e2e0b95a.zip |
tag_pool: use size_t for string length
-rw-r--r-- | src/tag_pool.c | 4 | ||||
-rw-r--r-- | 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); |