From: Andre Noll Date: Mon, 21 Sep 2020 12:05:22 +0000 (+0200) Subject: Merge branch 'master' into next X-Git-Tag: v0.2.0~3 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=a52a0604fa0a069439f346215171e03067508695;p=osl.git Merge branch 'master' into next * master: Activate -Wsign-compare. --- a52a0604fa0a069439f346215171e03067508695 diff --cc fsck.c index 42312d9,e814df5..53b4a9b --- a/fsck.c +++ b/fsck.c @@@ -712,18 -716,18 +716,18 @@@ static int check_disk_storage_presence( return 1; hashes = fsck_malloc(t->num_rows * HASH_SIZE); INFO_LOG("looking for missing disk storage objects\n"); - for (i = 0; i < t->num_rows; i++) { - if (row_is_invalid(t, i)) + for (k = 0; k < t->num_rows; k++) { + if (row_is_invalid(t, k)) continue; - ret = get_mapped_object(t, dsnc, i, &obj); + ret = get_mapped_object(t, dsnc, k, &obj); if (ret < 0) return ret; - hash_object(t, &obj, hashes + i * HASH_SIZE); - hash_obj.data = hashes + i * HASH_SIZE; - hash_object(&obj, hashes + k * HASH_SIZE); ++ hash_object(t, &obj, hashes + k * HASH_SIZE); + hash_obj.data = hashes + k * HASH_SIZE; osl_add_row(hash_tree_table, &hash_obj); - ds_name = disk_storage_name_of_hash(t, hashes + i * HASH_SIZE); - FOR_EACH_DISK_STORAGE_COLUMN(j, t, cd) { - ret = check_disk_storage_column(t, i, j, ds_name, + ds_name = disk_storage_name_of_hash(t, hashes + k * HASH_SIZE); + FOR_EACH_DISK_STORAGE_COLUMN(n, t, cd) { + ret = check_disk_storage_column(t, k, n, ds_name, &missing_objects); if (ret < 0) goto err;