aboutsummaryrefslogtreecommitdiffstats
path: root/src/state_file.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-12-02 02:22:43 +0100
committerThomas Jansen <mithi@mithi.net>2008-12-02 02:22:43 +0100
commit2720585731eb6a39fece86fb675a644b8ea803ae (patch)
tree43c66f17c1266e484b6f8fa9951cdd98920a0f2b /src/state_file.c
parent4ca24f22f191033e5dbb88f34e4088bc2814ed0f (diff)
downloadmpd-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 'src/state_file.c')
-rw-r--r--src/state_file.c6
1 files changed, 3 insertions, 3 deletions
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 <glib.h>
#include <string.h>
#include <sys/stat.h>
@@ -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));
}