]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Declare {was,is}_admissible as bools.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Mar 2022 23:03:14 +0000 (00:03 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
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
playlist.c

diff --git a/mood.c b/mood.c
index a535bdcfe2c5c1dd74470bb3f11ccdeda3e9e01f..67c18d6781eb2cd428e1e2b5af9324dd3e50dee0 100644 (file)
--- 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;
 
index 5f83b0fe0a35c9e5c31c97828bfa7af2bebc6208..db9d091a388af704b69cb3fa7667e5070cca0de1 100644 (file)
@@ -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;