DatabasePrint: use unsigned counts

This commit is contained in:
Max Kellermann 2014-04-24 18:06:26 +02:00
parent ae178c77bd
commit 7c8b73bffb

View File

@ -169,14 +169,14 @@ db_selection_print(Client &client, const DatabaseSelection &selection,
} }
struct SearchStats { struct SearchStats {
int numberOfSongs; unsigned numberOfSongs;
unsigned long playTime; unsigned long playTime;
}; };
static void printSearchStats(Client &client, SearchStats *stats) static void printSearchStats(Client &client, SearchStats *stats)
{ {
client_printf(client, "songs: %i\n", stats->numberOfSongs); client_printf(client, "songs: %u\n", stats->numberOfSongs);
client_printf(client, "playtime: %li\n", stats->playTime); client_printf(client, "playtime: %lu\n", stats->playTime);
} }
static bool static bool