From 6fbdc721d972d8c1f823acd5473a3dce8836d5fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2008 10:17:33 +0000 Subject: fix -Wconst warnings [ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/locate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/locate.h') diff --git a/src/locate.h b/src/locate.h index c165a310a..28b2782b0 100644 --- a/src/locate.h +++ b/src/locate.h @@ -28,10 +28,10 @@ typedef struct _LocateTagItem { char *needle; } LocateTagItem; -int getLocateTagItemType(char *str); +int getLocateTagItemType(const char *str); /* returns NULL if not a known type */ -LocateTagItem *newLocateTagItem(char *typeString, char *needle); +LocateTagItem *newLocateTagItem(const char *typeString, const char *needle); /* return number of items or -1 on error */ int newLocateTagItemArrayFromArgArray(char *argArray[], int numArgs, -- cgit v1.2.3