diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-29 02:35:09 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-29 04:05:48 -0700 |
commit | fcbcdd9869e3147fe4a30ba808af294f680c9373 (patch) | |
tree | ccc1799d04cbf2501032107384a81094e18c615a /src/command.c | |
parent | c7930c993e4624e4e6d9a50cdea448b432a2bf05 (diff) | |
download | mpd-fcbcdd9869e3147fe4a30ba808af294f680c9373.tar.gz mpd-fcbcdd9869e3147fe4a30ba808af294f680c9373.tar.xz mpd-fcbcdd9869e3147fe4a30ba808af294f680c9373.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |