From b5c9a01749da532ec7670fa5d6348c4df46c5df1 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Thu, 28 Dec 2023 00:09:16 +0300 Subject: [PATCH] reverse-ramdisk.c: omit curly brackets --- c-programming/reverse-ramdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index 233d8ed..f99fce9 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -124,9 +124,8 @@ int tf_free(int ID) { free(temp_files[index].file_path); // Shift the remaining temp files in the array - for (int i = index; i < num_temp_files - 1; i++) { + for (int i = index; i < num_temp_files - 1; i++) temp_files[(size_t) i] = temp_files[(size_t) i + 1]; - } num_temp_files--;