From b084bc28ede5d397e88a4e2bdad8c07a55069589 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:03:39 +0200 Subject: use the "bool" data type instead of "int" "bool" should be used in C99 programs for boolean values. --- src/song.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/song.h') 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 +#include #include #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 -- cgit v1.2.3