From: Andre Noll Date: Tue, 8 Mar 2022 23:03:14 +0000 (+0100) Subject: Declare {was,is}_admissible as bools. X-Git-Tag: v0.7.2~14^2~21 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=40cb867549240e3c90a249e8e98d8abdeef29be2;p=paraslash.git Declare {was,is}_admissible as bools. These are only used as a bool, so change the declarations in mood.c and score.c accordingly and remove an unnecessary initialization in mood.c. --- diff --git a/mood.c b/mood.c index a535bdcf..67c18d67 100644 --- a/mood.c +++ b/mood.c @@ -480,7 +480,8 @@ static int mood_update_audio_file(const struct osl_row *aft_row, struct afs_info *old_afsi) { long score, percent; - int ret, is_admissible, was_admissible = 0; + int ret; + bool is_admissible, was_admissible; struct afs_info afsi; unsigned rank; diff --git a/playlist.c b/playlist.c index 5f83b0fe..db9d091a 100644 --- a/playlist.c +++ b/playlist.c @@ -183,7 +183,8 @@ static int search_path(char *path, void *data) static int handle_audio_file_event(enum afs_events event, void *data) { - int ret, was_admissible = 0, is_admissible; + int ret; + bool was_admissible = false, is_admissible; struct osl_object playlist_def; char *new_path; const struct osl_row *row = data;