aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-28 20:02:17 +0200
committerMax Kellermann <max@duempel.org>2008-08-28 20:02:17 +0200
commitbc1c8835c612ccb8063982657453fe658ed69d75 (patch)
tree192d420f193d8b5c6690d7064634ea58e3bc2d2d /src/tag.c
parent801c71ed1c02a1505ef64902f6557fdfe1749a96 (diff)
downloadmpd-bc1c8835c612ccb8063982657453fe658ed69d75.tar.gz
mpd-bc1c8835c612ccb8063982657453fe658ed69d75.tar.xz
mpd-bc1c8835c612ccb8063982657453fe658ed69d75.zip
const pointers
The usual bunch of pointer arguments which should be const.
Diffstat (limited to '')
-rw-r--r--src/tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index 00f09f10f..c1ccd0a42 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -697,7 +697,7 @@ int mpdTagsAreEqual(MpdTag * tag1, MpdTag * tag2)
}
static void appendToTagItems(MpdTag * tag, enum tag_type type,
- char *value, size_t len)
+ const char *value, size_t len)
{
unsigned int i = tag->numOfItems;
char *duplicated = xmalloc(len + 1);
@@ -718,7 +718,7 @@ static void appendToTagItems(MpdTag * tag, enum tag_type type,
}
void addItemToMpdTagWithLen(MpdTag * tag, enum tag_type itemType,
- char *value, size_t len)
+ const char *value, size_t len)
{
if (ignoreTagItems[itemType])
{