aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/song.h b/src/song.h
index 142ea52f4..2510f3770 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