diff options
author | Thomas Jansen <mithi@mithi.net> | 2008-12-02 02:22:43 +0100 |
---|---|---|
committer | Thomas Jansen <mithi@mithi.net> | 2008-12-02 02:22:43 +0100 |
commit | 2720585731eb6a39fece86fb675a644b8ea803ae (patch) | |
tree | 43c66f17c1266e484b6f8fa9951cdd98920a0f2b /src/path.c | |
parent | 4ca24f22f191033e5dbb88f34e4088bc2814ed0f (diff) | |
download | mpd-2720585731eb6a39fece86fb675a644b8ea803ae.tar.gz mpd-2720585731eb6a39fece86fb675a644b8ea803ae.tar.xz mpd-2720585731eb6a39fece86fb675a644b8ea803ae.zip |
replaced mpd_likely/mpd_unlikely by G_LIKELY/G_UNLIKELY
We want to remove gcc.h eventually. This takes care of all the
G_LIKELY/G_UNLIKELY macros.
Diffstat (limited to '')
-rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index ff7f6ffe5..3baa96bb2 100644 --- a/src/path.c +++ b/src/path.c @@ -110,7 +110,7 @@ char *pfx_dir(char *dst, const char *path, const size_t path_len, const char *pfx, const size_t pfx_len) { - if (mpd_unlikely((pfx_len + path_len + 1) >= MPD_PATH_MAX)) + if (G_UNLIKELY((pfx_len + path_len + 1) >= MPD_PATH_MAX)) FATAL("Cannot prefix '%s' to '%s', PATH_MAX: %d\n", pfx, path, MPD_PATH_MAX); |