aboutsummaryrefslogtreecommitdiff
path: root/src/song.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
commitb084bc28ede5d397e88a4e2bdad8c07a55069589 (patch)
treed61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/song.h
parent71351160b1b6fd4203f27f9159ae39a476483e1a (diff)
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/song.h b/src/song.h
index 142ea52f..2510f377 100644
--- a/src/song.h
+++ b/src/song.h
@@ -19,6 +19,8 @@
#ifndef SONG_H
#define SONG_H
+#include <stddef.h>
+#include <stdbool.h>
#include <sys/time.h>
#define SONG_BEGIN "songList begin"
@@ -55,10 +57,10 @@ updateSongInfo(struct song *song);
char *
get_song_url(char *path_max_tmp, struct song *song);
-static inline int
+static inline bool
song_is_file(const struct song *song)
{
- return !!song->parentDir;
+ return song->parentDir != NULL;
}
#endif