From 2720585731eb6a39fece86fb675a644b8ea803ae Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Tue, 2 Dec 2008 02:22:43 +0100 Subject: 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. --- src/state_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state_file.c') diff --git a/src/state_file.c b/src/state_file.c index 1130d62c0..618d9b2f7 100644 --- a/src/state_file.c +++ b/src/state_file.c @@ -19,13 +19,13 @@ #include "../config.h" #include "state_file.h" #include "conf.h" -#include "gcc.h" #include "log.h" #include "audio.h" #include "playlist.h" #include "utils.h" #include "volume.h" +#include #include #include @@ -58,7 +58,7 @@ void write_state_file(void) if (!sfpath) return; fp = fopen(sfpath, "w"); - if (mpd_unlikely(!fp)) { + if (G_UNLIKELY(!fp)) { ERROR("problems opening state file \"%s\" for writing: %s\n", sfpath, strerror(errno)); return; @@ -87,7 +87,7 @@ void read_state_file(void) FATAL("state file \"%s\" is not a regular file\n", sfpath); while (!(fp = fopen(sfpath, "r")) && errno == EINTR); - if (mpd_unlikely(!fp)) { + if (G_UNLIKELY(!fp)) { FATAL("problems opening state file \"%s\" for reading: %s\n", sfpath, strerror(errno)); } -- cgit v1.2.3