From 40cb867549240e3c90a249e8e98d8abdeef29be2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 9 Mar 2022 00:03:14 +0100 Subject: [PATCH] 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. --- mood.c | 3 ++- playlist.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.2