Parcourir la Source

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 10 ans auparavant
Parent
commit
532f059d71
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);