kill afd->score.
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index e41073ac1d4053925d53ce7b07bfa672e5e5ddac..d2c7ced438e6ae8cfa653b215f18a590e7b7e780 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -665,7 +665,8 @@ int load_afd(int shmid, struct audio_file_data *afd)
  *
  * \return Positive on success, negative on errors.
  */
  *
  * \return Positive on success, negative on errors.
  */
-int open_and_update_audio_file(struct osl_row *aft_row, struct audio_file_data *afd)
+int open_and_update_audio_file(struct osl_row *aft_row,
+       struct audio_file_data *afd, long score)
 {
        HASH_TYPE *aft_hash, file_hash[HASH_SIZE];
        struct osl_object afsi_obj;
 {
        HASH_TYPE *aft_hash, file_hash[HASH_SIZE];
        struct osl_object afsi_obj;
@@ -717,7 +718,7 @@ int open_and_update_audio_file(struct osl_row *aft_row, struct audio_file_data *
                        .afhi = afd->afhi,
                        .afsi = afd->afsi,
                        .path = path,
                        .afhi = afd->afhi,
                        .afsi = afd->afsi,
                        .path = path,
-                       .score = afd->score,
+                       .score = score,
                        .hash = file_hash
                };
                struct para_buffer pb = {.buf = NULL};
                        .hash = file_hash
                };
                struct para_buffer pb = {.buf = NULL};