aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-27 19:36:03 +0100
committerMax Kellermann <max@duempel.org>2009-03-27 19:36:03 +0100
commit51894725ec02dd796878414168c25857e2e0b95a (patch)
treec5cac4f5a489b6a3eadfa1f3d7b84850c78a20f0 /src
parent8fa44d53ab1c1edb0a78da32b69f4f71b91817db (diff)
downloadmpd-51894725ec02dd796878414168c25857e2e0b95a.tar.gz
mpd-51894725ec02dd796878414168c25857e2e0b95a.tar.xz
mpd-51894725ec02dd796878414168c25857e2e0b95a.zip
tag_pool: use size_t for string length
Diffstat (limited to '')
-rw-r--r--src/tag_pool.c4
-rw-r--r--src/tag_pool.h4
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);