get rid of a gcc warning

git-svn-id: https://svn.musicpd.org/mpd/trunk@2682 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-11-15 22:55:05 +00:00
parent d5a9925d1f
commit 469a5824b8
1 changed files with 4 additions and 4 deletions

View File

@ -129,23 +129,23 @@ void resetVisitedFlagsInTagTracker(int type) {
}
int wasVisitedInTagTracker(int type, char * str) {
TagTrackerItem * item;
void * item;
if(!tagLists[type]) return 0;
if(!findInList(tagLists[type], str, &item)) return 0;
return item->visited;
return ((TagTrackerItem *)item)->visited;
}
void visitInTagTracker(int type, char * str) {
TagTrackerItem * item;
void * item;
if(!tagLists[type]) return;
if(!findInList(tagLists[type], str, &item)) return;
item->visited = 1;
((TagTrackerItem *)item)->visited = 1;
}
void printVisitedInTagTracker(FILE * fp, int type) {