1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-12 21:00:23 +08:00

fix below c99

This commit is contained in:
源文雨
2023-11-08 18:13:33 +09:00
parent adc400aee4
commit f0fd09bf7b
2 changed files with 6 additions and 4 deletions

3
file.h
View File

@@ -26,7 +26,8 @@ static inline off_t get_file_size(int isdata) {
}
static int init_file(char* file_path[2]) {
for (int i = 0; i < 2; i++) {
int i = 0;
for(; i < 2; i++) {
FILE* fp = fopen(file_path[i], "rb+");
if(!fp) {
perror("Open file error");