From 226d52b36fe648215f367d352ad6e5eb38e116be Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:49:29 +0200 Subject: switch to C99 types, part II Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch. --- src/playlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 233e434b7..e735d7731 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -73,7 +73,7 @@ static void randomizeOrder(int start, int end); static void incrPlaylistVersion(void) { - static unsigned long max = ((mpd_uint32) 1 << 31) - 1; + static unsigned long max = ((uint32_t) 1 << 31) - 1; playlist.version++; if (playlist.version >= max) { int i; @@ -141,7 +141,7 @@ void initPlaylist(void) DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS; playlist.songs = xmalloc(sizeof(Song *) * playlist_max_length); - playlist.songMod = xmalloc(sizeof(mpd_uint32) * playlist_max_length); + playlist.songMod = xmalloc(sizeof(uint32_t) * playlist_max_length); playlist.order = xmalloc(sizeof(int) * playlist_max_length); playlist.idToPosition = xmalloc(sizeof(int) * playlist_max_length * PLAYLIST_HASH_MULT); @@ -369,7 +369,7 @@ static void printPlaylistSongInfo(struct client *client, int song) client_printf(client, "Pos: %i\nId: %i\n", song, playlist.positionToId[song]); } -int playlistChanges(struct client *client, mpd_uint32 version) +int playlistChanges(struct client *client, uint32_t version) { int i; @@ -384,7 +384,7 @@ int playlistChanges(struct client *client, mpd_uint32 version) return 0; } -int playlistChangesPosId(struct client *client, mpd_uint32 version) +int playlistChangesPosId(struct client *client, uint32_t version) { int i; -- cgit v1.2.3