diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-08-18 07:02:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-08-18 07:02:54 +0000 |
commit | 9caade4eb11bc930f618650918db8b60b912c961 (patch) | |
tree | 07b5786808d213061870819109131af495a6c256 /src/playerData.c | |
parent | a6297f81f373d251bccd91d0079e731874b605db (diff) | |
download | mpd-9caade4eb11bc930f618650918db8b60b912c961.tar.gz mpd-9caade4eb11bc930f618650918db8b60b912c961.tar.xz mpd-9caade4eb11bc930f618650918db8b60b912c961.zip |
fix a few warnings on 64-bit machines
size_t is bigger than int on most 64-bit machines, so cast
size_t to long when passing them to printf-like functions.
Ideally we'd use %z, but many compilers don't support it.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4656 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playerData.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playerData.c b/src/playerData.c index 3feb46e45..3edb6b2e3 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -64,7 +64,7 @@ void initPlayerData(void) buffered_chunks = bufferSize / CHUNK_SIZE; if (buffered_chunks >= 1 << 15) { - ERROR("buffer size \"%i\" is too big\n", bufferSize); + ERROR("buffer size \"%li\" is too big\n", (long)bufferSize); exit(EXIT_FAILURE); } |