]> git.tuebingen.mpg.de Git - osl.git/blobdiff - fsck.c
Prepare hash_function() for multiple hash algorithms.
[osl.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 8a32abae24dc38d49821711d0acc0511a3ff0872..42312d9fb472463963b84b3fb93c7190a05ddc7c 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -718,7 +718,7 @@ static int check_disk_storage_presence(struct osl_table *t)
                ret = get_mapped_object(t, dsnc, i, &obj);
                if (ret < 0)
                        return ret;
-               hash_object(&obj, hashes + i * HASH_SIZE);
+               hash_object(t, &obj, hashes + i * HASH_SIZE);
                hash_obj.data = hashes + i * HASH_SIZE;
                osl_add_row(hash_tree_table, &hash_obj);
                ds_name = disk_storage_name_of_hash(t, hashes + i * HASH_SIZE);
@@ -1041,7 +1041,7 @@ static int dump_row(struct osl_table *t, unsigned row_num, const char *row_dir)
        ret = get_mapped_object(t, dsnc, row_num, &obj);
        if (ret < 0)
                return ret;
-       hash_object(&obj, hash);
+       hash_object(t, &obj, hash);
        ds_name = disk_storage_name_of_hash(t, hash);
        FOR_EACH_DISK_STORAGE_COLUMN(i, t, cd) {
                filename = disk_storage_path(t, i, ds_name);