From fcbcdd9869e3147fe4a30ba808af294f680c9373 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 29 Sep 2008 02:35:09 -0700 Subject: Switch to C99 types (retaining compat with old compilers) Seeing the "mpd_" prefix _everywhere_ is mind-numbing as the mind needs to retrain itself to skip over the first 4 tokens of a type to get to its meaning. So avoid having extra characters on my terminal to make it easier to follow code at 2:30 am in the morning. Please report any new issues you may come across on Free toolchains. I realize how difficult it can be to build/maintain cross-compiling toolchains and I have no intention of forcing people to upgrade their toolchains to build mpd. Tested with gcc 2.95.4 and and gcc 4.3.1 on x86-32. --- src/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 3f80dc916..28b6ee3bb 100644 --- a/src/command.c +++ b/src/command.c @@ -185,7 +185,7 @@ static void command_error_va(int fd, int error, const char *fmt, va_list args) } } -static int mpd_fprintf__ check_uint32(int fd, mpd_uint32 *dst, +static int mpd_fprintf__ check_uint32(int fd, uint32_t *dst, const char *s, const char *fmt, ...) { char *test; @@ -613,7 +613,7 @@ static int handleRename(int fd, mpd_unused int *permission, static int handlePlaylistChanges(int fd, mpd_unused int *permission, mpd_unused int argc, char *argv[]) { - mpd_uint32 version; + uint32_t version; if (check_uint32(fd, &version, argv[1], need_positive) < 0) return -1; @@ -623,7 +623,7 @@ static int handlePlaylistChanges(int fd, mpd_unused int *permission, static int handlePlaylistChangesPosId(int fd, mpd_unused int *permission, mpd_unused int argc, char *argv[]) { - mpd_uint32 version; + uint32_t version; if (check_uint32(fd, &version, argv[1], need_positive) < 0) return -1; -- cgit v1.2.3