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:
@@ -129,23 +129,23 @@ void resetVisitedFlagsInTagTracker(int type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int wasVisitedInTagTracker(int type, char * str) {
|
int wasVisitedInTagTracker(int type, char * str) {
|
||||||
TagTrackerItem * item;
|
void * item;
|
||||||
|
|
||||||
if(!tagLists[type]) return 0;
|
if(!tagLists[type]) return 0;
|
||||||
|
|
||||||
if(!findInList(tagLists[type], str, &item)) return 0;
|
if(!findInList(tagLists[type], str, &item)) return 0;
|
||||||
|
|
||||||
return item->visited;
|
return ((TagTrackerItem *)item)->visited;
|
||||||
}
|
}
|
||||||
|
|
||||||
void visitInTagTracker(int type, char * str) {
|
void visitInTagTracker(int type, char * str) {
|
||||||
TagTrackerItem * item;
|
void * item;
|
||||||
|
|
||||||
if(!tagLists[type]) return;
|
if(!tagLists[type]) return;
|
||||||
|
|
||||||
if(!findInList(tagLists[type], str, &item)) return;
|
if(!findInList(tagLists[type], str, &item)) return;
|
||||||
|
|
||||||
item->visited = 1;
|
((TagTrackerItem *)item)->visited = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void printVisitedInTagTracker(FILE * fp, int type) {
|
void printVisitedInTagTracker(FILE * fp, int type) {
|
||||||
|
Reference in New Issue
Block a user