dbUtils/directory: traverseAllIn forEachSong returns -1 on error

Being consistent with most UNIX functions...
This commit is contained in:
Eric Wong
2008-10-07 22:07:44 +02:00
committed by Max Kellermann
parent 45334a23e1
commit 8be6026336
2 changed files with 11 additions and 14 deletions

View File

@@ -83,7 +83,7 @@ static int searchInDirectory(Song * song, void *_data)
LocateTagItemArray *array = &data->array;
if (strstrSearchTags(song, array->numItems, array->items))
song_print_info(data->client, song);
return song_print_info(data->client, song);
return 0;
}
@@ -124,7 +124,7 @@ static int findInDirectory(Song * song, void *_data)
LocateTagItemArray *array = &data->array;
if (tagItemsFoundAndMatches(song, array->numItems, array->items))
song_print_info(data->client, song);
return song_print_info(data->client, song);
return 0;
}