diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:09 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-08-30 18:36:18 -0700 |
commit | 29eba419627437fb6f20714bb553d39a58305c5e (patch) | |
tree | 88e8987dfc3582cfff15d76637cf63716d7237eb /src/locate.c | |
parent | 554c708450dd5008c310902f67702b9727b944d3 (diff) | |
download | mpd-29eba419627437fb6f20714bb553d39a58305c5e.tar.gz mpd-29eba419627437fb6f20714bb553d39a58305c5e.tar.xz mpd-29eba419627437fb6f20714bb553d39a58305c5e.zip |
converted MpdTagItem.type to an enum
Don't use CPP macros when you can use C enum... this also allows
better type checking.
Diffstat (limited to 'src/locate.c')
-rw-r--r-- | src/locate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locate.c b/src/locate.c index d97097f37..f68afdedb 100644 --- a/src/locate.c +++ b/src/locate.c @@ -121,7 +121,7 @@ void freeLocateTagItem(LocateTagItem * item) free(item); } -static int strstrSearchTag(Song * song, int type, char *str) +static int strstrSearchTag(Song * song, enum tag_type type, char *str) { int i; char *duplicate; @@ -169,7 +169,7 @@ int strstrSearchTags(Song * song, int numItems, LocateTagItem * items) return 1; } -static int tagItemFoundAndMatches(Song * song, int type, char *str) +static int tagItemFoundAndMatches(Song * song, enum tag_type type, char *str) { int i; |