aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-28 20:02:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-28 20:02:16 +0200
commit801c71ed1c02a1505ef64902f6557fdfe1749a96 (patch)
tree3a9b9d038a6a08938d1518f93434468f0e1408a1 /src/tag.h
parent1560a70b01e1883d2cf6d444cef26f28753bb94e (diff)
downloadmpd-801c71ed1c02a1505ef64902f6557fdfe1749a96.tar.gz
mpd-801c71ed1c02a1505ef64902f6557fdfe1749a96.tar.xz
mpd-801c71ed1c02a1505ef64902f6557fdfe1749a96.zip
unsigned integers and size_t
Use "unsigned int" whenever negative values are not meaningful. Use size_t whenever we are going to describe buffer sizes.
Diffstat (limited to 'src/tag.h')
-rw-r--r--src/tag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tag.h b/src/tag.h
index 99b32653c..74770e49e 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -22,6 +22,7 @@
#include "../config.h"
#include "mpd_types.h"
+#include "os_compat.h"
#ifdef HAVE_ID3TAG
#include <id3tag.h>
@@ -72,7 +73,7 @@ void clearItemsFromMpdTag(MpdTag * tag, enum tag_type itemType);
void freeMpdTag(MpdTag * tag);
void addItemToMpdTagWithLen(MpdTag * tag, enum tag_type itemType,
- char *value, int len);
+ char *value, size_t len);
#define addItemToMpdTag(tag, itemType, value) \
addItemToMpdTagWithLen(tag, itemType, value, strlen(value))