Просмотр исходного кода

Use st_mtime instead of st_mtim.tv_sec

The latter might be linux specific, and as we don't need nanosecond
precision we can just use st_mtime.
Lucas Stadler лет назад: 9
Родитель
Сommit
532f059d71
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      c/ton/main.c

+ 1 - 1
c/ton/main.c

703
	}
703
	}
704
704
705
	if (last_modified != NULL) {
705
	if (last_modified != NULL) {
706
		*last_modified = f_stat.st_mtim.tv_sec;
706
		*last_modified = f_stat.st_mtime;
707
	}
707
	}
708
708
709
	char *buf = malloc(f_stat.st_size + 1);
709
	char *buf = malloc(f_stat.st_size + 1);