mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-05-31 08:31:41 +05:30
reverse-ramdisk.c: fix grammar
This commit is contained in:
@@ -139,7 +139,7 @@ int tf_alloc(size_t n, size_t type_size) {
|
|||||||
temp_files[num_temp_files].file_path = file_path;
|
temp_files[num_temp_files].file_path = file_path;
|
||||||
temp_files[num_temp_files].file = file;
|
temp_files[num_temp_files].file = file;
|
||||||
|
|
||||||
// Increment the number of temp files
|
// Increment the number of temporary files
|
||||||
num_temp_files++;
|
num_temp_files++;
|
||||||
|
|
||||||
return temp_files[num_temp_files - 1].ID;
|
return temp_files[num_temp_files - 1].ID;
|
||||||
@@ -176,7 +176,7 @@ int tf_free(int ID) {
|
|||||||
free(temp_files[index].file_path);
|
free(temp_files[index].file_path);
|
||||||
temp_files[index].file_path = NULL;
|
temp_files[index].file_path = NULL;
|
||||||
|
|
||||||
// Shift the remaining temp files in the array
|
// Shift the remaining temporary files in the array
|
||||||
for (size_t i = index; i < num_temp_files - 1; i++)
|
for (size_t i = index; i < num_temp_files - 1; i++)
|
||||||
temp_files[i] = temp_files[i + 1];
|
temp_files[i] = temp_files[i + 1];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user