aboutsummaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-18 07:02:54 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-18 07:02:54 +0000
commit9caade4eb11bc930f618650918db8b60b912c961 (patch)
tree07b5786808d213061870819109131af495a6c256 /src/interface.c
parenta6297f81f373d251bccd91d0079e731874b605db (diff)
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 'src/interface.c')
-rw-r--r--src/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface.c b/src/interface.c
index 0381404b..3f803d05 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -332,10 +332,10 @@ static int processLineOfInput(Interface * interface)
ERROR("interface %i: command "
"list size (%i) is "
"larger than the max "
- "(%i)\n",
+ "(%li)\n",
interface->num,
interface->cmd_list_size,
- interface_max_command_list_size);
+ (long)interface_max_command_list_size);
closeInterface(interface);
ret = COMMAND_RETURN_CLOSE;
} else